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:
'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.