From 70edf31fc8c7162f074d6a519de743e2c3995f03 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Sun, 3 Nov 2024 05:38:25 +0100 Subject: [PATCH 1/1] Remove title member Rename resource to asset Add album repository --- config/doctrine/Album.orm.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) 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'] -- 2.41.1