diff --git a/src/Bundle/ChillThirdPartyBundle/Repository/ThirdPartyRepository.php b/src/Bundle/ChillThirdPartyBundle/Repository/ThirdPartyRepository.php index de9cdd270..3153713bb 100644 --- a/src/Bundle/ChillThirdPartyBundle/Repository/ThirdPartyRepository.php +++ b/src/Bundle/ChillThirdPartyBundle/Repository/ThirdPartyRepository.php @@ -147,8 +147,8 @@ class ThirdPartyRepository implements ObjectRepository $qb->where( $qb->expr()->orX( - $qb->expr()->eq('t.telephone', ':phonenumber'), - $qb->expr()->eq('t.telephone2', ':phonenumber') + $qb->expr()->eq('tp.telephone', ':phonenumber'), + $qb->expr()->eq('tp.telephone2', ':phonenumber') ) );