X-Git-Url: https://git.rapsys.eu/treebundle/blobdiff_plain/0315ccbb69b5a24a5a073f7b3da82a062e62825c..c74ab618abe6dad2df2e2e2139cec77188da6208:/config/doctrine/Album.orm.yml 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']