X-Git-Url: https://git.rapsys.eu/treebundle/blobdiff_plain/e28b795a54cc492578bc5d5bcb9e1935a51436e9..70edf31fc8c7162f074d6a519de743e2c3995f03:/config/doctrine/Album.orm.yml?ds=sidebyside diff --git a/config/doctrine/Album.orm.yml b/config/doctrine/Album.orm.yml index 5f29f72..05cbd62 100644 --- a/config/doctrine/Album.orm.yml +++ b/config/doctrine/Album.orm.yml @@ -1,6 +1,6 @@ Rapsys\TreeBundle\Entity\Album: type: entity - #repositoryClass: Rapsys\TreeBundle\Repository\AlbumRepository + repositoryClass: Rapsys\TreeBundle\Repository\AlbumRepository table: albums id: id: @@ -13,10 +13,7 @@ Rapsys\TreeBundle\Entity\Album: path: type: string length: 4096 - nullable: true - title: - type: string - length: 64 + unique: true nullable: true slug: type: string @@ -28,8 +25,8 @@ Rapsys\TreeBundle\Entity\Album: updated: type: datetime oneToMany: - resources: - targetEntity: Rapsys\TreeBundle\Entity\Resource + assets: + targetEntity: Rapsys\TreeBundle\Entity\Asset mappedBy: album lifecycleCallbacks: preUpdate: ['preUpdate']