]> Raphaël G. Git Repositories - treebundle/commitdiff
Add album reference
authorRaphaël Gertz <git@rapsys.eu>
Sat, 2 Nov 2024 03:58:38 +0000 (04:58 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Sat, 2 Nov 2024 03:58:38 +0000 (04:58 +0100)
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