OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums 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, 8 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • 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)

The forum ‘OroCRM – Programming Questions’ is closed to new topics and replies.

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

Yes No