summaryrefslogtreecommitdiffstats
path: root/src/Sde/WebserviceBundle/Repository
diff options
context:
space:
mode:
Diffstat (limited to 'src/Sde/WebserviceBundle/Repository')
-rw-r--r--src/Sde/WebserviceBundle/Repository/AssociationRepository.php2
-rw-r--r--src/Sde/WebserviceBundle/Repository/MandateRepository.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Sde/WebserviceBundle/Repository/AssociationRepository.php b/src/Sde/WebserviceBundle/Repository/AssociationRepository.php
index edd4818..fb51529 100644
--- a/src/Sde/WebserviceBundle/Repository/AssociationRepository.php
+++ b/src/Sde/WebserviceBundle/Repository/AssociationRepository.php
@@ -36,7 +36,7 @@ class AssociationRepository extends EntityRepository
*/
public function searchByName($name)
{
- $qb = new QueryBuilder($this->_em);
+ $qb = $this->getEntityManager()->createQueryBuilder();
$qb->select('a')
->from('Sde\WebserviceBundle\Entity\Association', 'a')
->where('a.name LIKE :name')
diff --git a/src/Sde/WebserviceBundle/Repository/MandateRepository.php b/src/Sde/WebserviceBundle/Repository/MandateRepository.php
index 21a244f..0a10718 100644
--- a/src/Sde/WebserviceBundle/Repository/MandateRepository.php
+++ b/src/Sde/WebserviceBundle/Repository/MandateRepository.php
@@ -115,7 +115,7 @@ class MandateRepository extends EntityRepository
*/
private function getBaseQuery()
{
- $qb = new QueryBuilder($this->_em);
+ $qb = $this->getEntityManager()->createQueryBuilder();
$qb->select('m, p, a, s, sp')
->from('Sde\WebserviceBundle\Entity\Mandate', 'm')
->join('m.position', 'p')