Hi everyone,
I'm actually facing an issue while creating a custom entity.
All the functionalities about this custom entity are working except the creation. I get an 500 error when I submit the creation form.
I've tried to add it directly in DB and edit it from the interface and that works perfectly.
I started to debug all the saving process until the function save() in BaseSaver. All the validations are okay and I get the error when the objectManager tries to flush.
Error fixed.
It wasn't an issue coming from the bundle but from mysql. In fact, mysql doesn't accept columns named "column", so it was creating an error when I was trying to INSERT a value in DB.
Hi everyone, I'm actually facing an issue while creating a custom entity. All the functionalities about this custom entity are working except the creation. I get an 500 error when I submit the creation form. I've tried to add it directly in DB and edit it from the interface and that works perfectly. I started to debug all the saving process until the function save() in BaseSaver. All the validations are okay and I get the error when the objectManager tries to flush.
Here is my Mapping.orm.yml file Extensions\Bundle\MappingConnectorBundle\Entity\Mapping: repositoryClass: Pim\Bundle\CustomEntityBundle\Entity\Repository\CustomEntityRepository type: entity table: mapping_connector_attributes changeTrackingPolicy: DEFERRED_EXPLICIT fields: id: type: integer id: true generator: strategy: AUTO code: type: string length: 255 unique: true import: type: string length: 255 attribute: type: string length: 255 column: type: string length: 255 sortOrder: type: integer lifecycleCallbacks: { }
And my Entity file : ` namespace Extensions\Bundle\MappingConnectorBundle\Entity;
use Pim\Bundle\CustomEntityBundle\Entity\AbstractCustomEntity;
class Mapping extends AbstractCustomEntity {
}`
Thanks in advance :)