]> Raphaƫl G. Git Repositories - treebundle/blobdiff - config/doctrine/Album.orm.yml
Version 0.0.8
[treebundle] / config / doctrine / Album.orm.yml
index 5f29f723adf005118feacdc3a2d4cf76c9910f5d..54659b02645c10b7905a2237fb7818149e82a500 100644 (file)
@@ -1,6 +1,6 @@
 Rapsys\TreeBundle\Entity\Album:
     type: entity
 Rapsys\TreeBundle\Entity\Album:
     type: entity
-    #repositoryClass: Rapsys\TreeBundle\Repository\AlbumRepository
+    repositoryClass: Rapsys\TreeBundle\Repository\AlbumRepository
     table: albums
     id:
         id:
     table: albums
     id:
         id:
@@ -13,10 +13,7 @@ Rapsys\TreeBundle\Entity\Album:
         path:
             type: string
             length: 4096
         path:
             type: string
             length: 4096
-            nullable: true
-        title:
-            type: string
-            length: 64
+            unique: true
             nullable: true
         slug:
             type: string
             nullable: true
         slug:
             type: string
@@ -28,8 +25,8 @@ Rapsys\TreeBundle\Entity\Album:
         updated:
             type: datetime
     oneToMany:
         updated:
             type: datetime
     oneToMany:
-        resources:
-            targetEntity: Rapsys\TreeBundle\Entity\Resource
+        elements:
+            targetEntity: Rapsys\TreeBundle\Entity\Element
             mappedBy: album
     lifecycleCallbacks:
         preUpdate: ['preUpdate']
             mappedBy: album
     lifecycleCallbacks:
         preUpdate: ['preUpdate']