From a4422be70ec6b6823f9093709b443d5dab1cf97f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Mon, 11 Dec 2023 03:32:22 +0100 Subject: [PATCH 1/1] Add repository Add commented out table naming --- Resources/config/doctrine/User.orm.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Resources/config/doctrine/User.orm.yml b/Resources/config/doctrine/User.orm.yml index 24300a2..a88425f 100644 --- a/Resources/config/doctrine/User.orm.yml +++ b/Resources/config/doctrine/User.orm.yml @@ -1,5 +1,7 @@ Rapsys\UserBundle\Entity\User: type: mappedSuperclass + repositoryClass: Rapsys\UserBundle\Repository\UserRepository +# table: users 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 -# joinTable: -# name: groups_users +# joinTable: +# name: users_groups +# joinColumns: +# id: +# name: user_id +# inverseJoinColumns: +# id: +# name: group_id lifecycleCallbacks: preUpdate: ['preUpdate'] -- 2.41.1