]> Raphaƫl G. Git Repositories - userbundle/blobdiff - Repository.php
Version 0.5.5
[userbundle] / Repository.php
index 7910305679d572a813532b9375debda26e3af9ac..f6207e705401927fa42d4cd182e124a770b3be34 100644 (file)
@@ -79,15 +79,13 @@ class Repository extends EntityRepository {
                //Set quoted table names
                //XXX: this allow to make this code table name independent
                //XXX: remember to place longer prefix before shorter to avoid strange replacings
                //Set quoted table names
                //XXX: this allow to make this code table name independent
                //XXX: remember to place longer prefix before shorter to avoid strange replacings
+               //XXX: entity short syntax removed in doctrine/persistence 3.x: https://github.com/doctrine/orm/issues/8818
                $tables = [
                        //Set entities
                $tables = [
                        //Set entities
-                       'RapsysUserBundle:UserGroup' => $qs->getJoinTableName($manager->getClassMetadata($this->config['class']['user'])->getAssociationMapping('groups'), $manager->getClassMetadata($this->config['class']['user']), $dp),
-                       'RapsysUserBundle:Civility' => $qs->getTableName($manager->getClassMetadata($this->config['class']['civility']), $dp),
-                       'RapsysUserBundle:Group' => $qs->getTableName($manager->getClassMetadata($this->config['class']['group']), $dp),
-                       'RapsysUserBundle:User' => $qs->getTableName($manager->getClassMetadata($this->config['class']['user']), $dp),
-                       //Set default group
-                       //XXX: or $manager->getConnection()->quote($this->config['default']['group'][0]) ???
-                       ':defaultgroup' => $dp->quoteStringLiteral($this->config['default']['group'][0]),
+                       'Rapsys\UserBundle\Entity\UserGroup' => $qs->getJoinTableName($manager->getClassMetadata($this->config['class']['user'])->getAssociationMapping('groups'), $manager->getClassMetadata($this->config['class']['user']), $dp),
+                       'Rapsys\UserBundle\Entity\Civility' => $qs->getTableName($manager->getClassMetadata($this->config['class']['civility']), $dp),
+                       'Rapsys\UserBundle\Entity\Group' => $qs->getTableName($manager->getClassMetadata($this->config['class']['group']), $dp),
+                       'Rapsys\UserBundle\Entity\User' => $qs->getTableName($manager->getClassMetadata($this->config['class']['user']), $dp),
                        //Set locale
                        //XXX: or $manager->getConnection()->quote($this->locale) ???
                        ':locale' => $dp->quoteStringLiteral($this->locale),
                        //Set locale
                        //XXX: or $manager->getConnection()->quote($this->locale) ???
                        ':locale' => $dp->quoteStringLiteral($this->locale),