OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums OroCRM OroCRM – Programming Questions OroAttachment in formcollection

This topic contains 1 reply, has 2 voices, and was last updated by  Yurii Muratov 5 years ago.

  • Creator
  • #24950



    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.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.

You will be redirected to [title]. Would you like to continue?

Yes No