I add to the entity customer field “SPGRegistreCommerce” type file via entity managment.
I added to the builder:PHP1234567891011use Oro\Bundle\AttachmentBundle\Form\Type\FileType;....->add('SPGRegistreCommerce',FileType::class,['required' => true,'label' => false,]);
in the front-end when I submit my form I receive this error:PHP123Expected value of type "Oro\Bundle\UserBundle\Entity\User"for association field "Oro\Bundle\AttachmentBundle\Entity\File#$owner",got "Oro\Bundle\CustomerBundle\Entity\CustomerUser" instead.
how can i fix that ? Thank you
The forum ‘OroCommerce’ is closed to new topics and replies.