]> Raphaël G. Git Repositories - treebundle/commitdiff
Remove title member
authorRaphaël Gertz <git@rapsys.eu>
Sun, 3 Nov 2024 04:38:25 +0000 (05:38 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Sun, 3 Nov 2024 04:38:25 +0000 (05:38 +0100)
Rename resource to asset
Add album repository

config/doctrine/Album.orm.yml

index 5f29f723adf005118feacdc3a2d4cf76c9910f5d..05cbd62e3beca7f098e30531aef3eda00b726456 100644 (file)
@@ -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']