]> Raphaƫl G. Git Repositories - treebundle/blobdiff - config/doctrine/Resource.orm.yml
Remove roots replaced by albums
[treebundle] / config / doctrine / Resource.orm.yml
index 470a66d8ff7947fc1b3d474497164e2ce33ea438..710be18183d3d519fc6c3da58aa6486da2d69d7c 100644 (file)
@@ -1,6 +1,6 @@
 Rapsys\TreeBundle\Entity\Resource:
     type: entity
 Rapsys\TreeBundle\Entity\Resource:
     type: entity
-    repositoryClass: Rapsys\TreeBundle\Repository\ResourceRepository
+    #repositoryClass: Rapsys\TreeBundle\Repository\ResourceRepository
     table: resources
     id:
         id:
     table: resources
     id:
         id:
@@ -19,6 +19,9 @@ Rapsys\TreeBundle\Entity\Resource:
         updated:
             type: datetime
     manyToOne:
         updated:
             type: datetime
     manyToOne:
+        album:
+            targetEntity: Rapsys\TreeBundle\Entity\Album
+            inversedBy: resources
         user:
             targetEntity: Rapsys\TreeBundle\Entity\User
             inversedBy: resources
         user:
             targetEntity: Rapsys\TreeBundle\Entity\User
             inversedBy: resources