This topic contains 1 reply, has 1 voice, and was last updated by thinh2010 6 years, 9 months ago.
- Topic
Hello,
I want to create a relationship between my entity and file (like attachment did)
I added file in entity
12345678/*** @var File** @Assert\Valid()* @ORM\ManyToOne(targetEntity="Oro\Bundle\AttachmentBundle\Entity\File", cascade={"persist"})* @ORM\JoinColumn(name="file_id", referencedColumnName="id")*/protected $file;I added oro_file in my form
123456789->add('file','oro_file',['label' => 'oro.attachment.file.label','required' => true,'checkEmptyFile' => $options['checkEmptyFile'],'allowDelete' => $options['allowDelete']]I can see the upload field display in my form
but after submit the form, I got this error
1Entity "Path\To\My\Entity" is not configurableDo you have any idea?
The forum ‘OroPlatform – Programming Questions’ is closed to new topics and replies.