ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

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

  • Creator
    Topic
  • #7457

    Tezeus
    Participant

    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.

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

You must be logged in to reply to this topic.