summaryrefslogtreecommitdiffstats
path: root/src/Sde/WebserviceBundle/Repository/AssociationRepository.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Sde/WebserviceBundle/Repository/AssociationRepository.php')
-rw-r--r--src/Sde/WebserviceBundle/Repository/AssociationRepository.php2
1 files changed, 1 insertions, 1 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')