X-Git-Url: https://git.rapsys.eu/treebundle/blobdiff_plain/0315ccbb69b5a24a5a073f7b3da82a062e62825c..refs/heads/master:/config/doctrine/Album.orm.yml diff --git a/config/doctrine/Album.orm.yml b/config/doctrine/Album.orm.yml index 5f29f72..54659b0 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 + elements: + targetEntity: Rapsys\TreeBundle\Entity\Element mappedBy: album lifecycleCallbacks: preUpdate: ['preUpdate']