Rapsys\TreeBundle\Entity\Element: type: entity #repositoryClass: Rapsys\TreeBundle\Repository\ElementRepository table: elements id: id: type: integer generator: strategy: AUTO options: unsigned: true fields: path: type: string length: 4096 nullable: true created: type: datetime updated: type: datetime manyToOne: album: targetEntity: Rapsys\TreeBundle\Entity\Album inversedBy: elements user: targetEntity: Rapsys\TreeBundle\Entity\User inversedBy: elements uniqueConstraints: album_user_path: columns: [ album_id, user_id, path ] lifecycleCallbacks: preUpdate: ['preUpdate']