From: Raphaƫl Gertz Date: Sun, 3 Nov 2024 04:38:25 +0000 (+0100) Subject: Remove title member X-Git-Tag: 0.0.7~5 X-Git-Url: https://git.rapsys.eu/treebundle/commitdiff_plain/70edf31fc8c7162f074d6a519de743e2c3995f03?ds=sidebyside;hp=e28b795a54cc492578bc5d5bcb9e1935a51436e9 Remove title member Rename resource to asset Add album repository --- 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']