]> Raphaƫl G. Git Repositories - blogbundle/blobdiff - Repository/EntityRepository.php
Use entity id as last resort sorting parameter
[blogbundle] / Repository / EntityRepository.php
index 0b8aede6ee8a4da15bb0f94c99e1fa2acf431e01..9036eca32039ffcc4259e99245c473352e5796c5 100644 (file)
@@ -114,6 +114,7 @@ class EntityRepository extends BaseEntityRepository {
                $tables = [
                        //Set entities
                        'RapsysBlogBundle:ArticleKeyword' => $qs->getJoinTableName($manager->getClassMetadata('Rapsys\BlogBundle\Entity\Article')->getAssociationMapping('keywords'), $manager->getClassMetadata('Rapsys\BlogBundle\Entity\Article'), $dp),
+                       'RapsysBlogBundle:UserGroup' => $qs->getJoinTableName($manager->getClassMetadata('Rapsys\BlogBundle\Entity\User')->getAssociationMapping('groups'), $manager->getClassMetadata('Rapsys\BlogBundle\Entity\User'), $dp),
                        'RapsysBlogBundle:ArticleTranslation' => $qs->getTableName($manager->getClassMetadata('Rapsys\BlogBundle\Entity\ArticleTranslation'), $dp),
                        'RapsysBlogBundle:KeywordTranslation' => $qs->getTableName($manager->getClassMetadata('Rapsys\BlogBundle\Entity\KeywordTranslation'), $dp),
                        'RapsysBlogBundle:UserTranslation' => $qs->getTableName($manager->getClassMetadata('Rapsys\BlogBundle\Entity\UserTranslation'), $dp),
@@ -130,6 +131,7 @@ class EntityRepository extends BaseEntityRepository {
                        ':limit' => PHP_INT_MAX,
                        //Set cleanup
                        "\t" => '',
+                       "\r" => ' ',
                        "\n" => ' '
                ];