This topic contains 1 reply, has 2 voices, and was last updated by Yurii Muratov 9 years, 2 months ago.
- Topic
Hello,
I was following the attachmentbundle documentation (here) and succesfully managed to add a file type field to my entity. I so called it “contract_schema” and “contract_schema_id” appeared in my database table. However whenever I put “contract_schema” into my formtype:
$builder->add(
'contract_schema',
'oro_file',
[
'label' => 'Contract schema',
]
);and use this formtype in a formcollection I get the following error:
Neither the property "contract_schema" nor one of the methods "getContractSchema()", "isContractSchema()", "hasContractSchema()", "__get()" exist and have public access in class "MyCompanyName\Bundle\ContractBundle\Entity\ContractSchemaEntity"
I know that this field was added via migration and I do not know how to "add" getters and setters to it.
Any help will be appreciated.
The forum ‘OroCRM – Programming Questions’ is closed to new topics and replies.