]> Raphaël G. Git Repositories - userbundle/commitdiff
Add repository
authorRaphaël Gertz <git@rapsys.eu>
Mon, 11 Dec 2023 02:32:22 +0000 (03:32 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Mon, 11 Dec 2023 02:32:22 +0000 (03:32 +0100)
Add commented out table naming

Resources/config/doctrine/User.orm.yml

index 24300a23fcfca5c48d0161c99201abada9ce8195..a88425fa062fbfac1f5edb13cda2e0f35266e6c1 100644 (file)
@@ -1,5 +1,7 @@
 Rapsys\UserBundle\Entity\User:
     type: mappedSuperclass
 Rapsys\UserBundle\Entity\User:
     type: mappedSuperclass
+    repositoryClass: Rapsys\UserBundle\Repository\UserRepository
+#   table: users
     id:
         id:
             type: integer
     id:
         id:
             type: integer
@@ -44,7 +46,13 @@ Rapsys\UserBundle\Entity\User:
             targetEntity: Group
             inversedBy: users
 #see if usefull: https://stackoverflow.com/questions/34523699/how-to-extend-doctrine-entity-in-another-bundle
             targetEntity: Group
             inversedBy: users
 #see if usefull: https://stackoverflow.com/questions/34523699/how-to-extend-doctrine-entity-in-another-bundle
-#            joinTable:
-#                name: groups_users
+#           joinTable:
+#               name: users_groups
+#               joinColumns:
+#                   id:
+#                       name: user_id
+#               inverseJoinColumns:
+#                   id:
+#                       name: group_id
     lifecycleCallbacks:
         preUpdate: ['preUpdate']
     lifecycleCallbacks:
         preUpdate: ['preUpdate']