]> Raphaƫl G. Git Repositories - treebundle/blobdiff - config/doctrine/Album.orm.yml
Remove title member
[treebundle] / 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']