From 06bbf585eff3bc428965577d516f8056bbd7695f Mon Sep 17 00:00:00 2001 From: Tchama Date: Tue, 12 Nov 2019 11:27:36 +0100 Subject: [PATCH] fix Person Repository error --- Entity/PersonRepository.php | 5 ++++- Repository/PersonRepository.php | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Entity/PersonRepository.php b/Entity/PersonRepository.php index 9619b2264..b8f121a1b 100644 --- a/Entity/PersonRepository.php +++ b/Entity/PersonRepository.php @@ -15,8 +15,11 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ + namespace Chill\PersonBundle\Entity; +use Doctrine\ORM\EntityRepository; + @trigger_error(__CLASS__." is deprecated since 2019-10-30. Use " .\Chill\PersonBundle\Repository\PersonRepository::class.' instead.', E_USER_DEPRECATED); @@ -25,6 +28,6 @@ namespace Chill\PersonBundle\Entity; * * @deprecated since 2019-10-30. Use \Chill\PersonBundle\Repository\PersonRepository instead. */ -class PersonRepository extends \Chill\PersonBundle\Repository\PersonRepository +class PersonRepository extends EntityRepository { } diff --git a/Repository/PersonRepository.php b/Repository/PersonRepository.php index 3b61845b8..42294ac2e 100644 --- a/Repository/PersonRepository.php +++ b/Repository/PersonRepository.php @@ -18,14 +18,14 @@ namespace Chill\PersonBundle\Repository; -use Doctrine\ORM\EntityRepository; + use Doctrine\ORM\QueryBuilder; /** * PersonRepository * */ -class PersonRepository extends EntityRepository +class PersonRepository extends \Chill\PersonBundle\Entity\PersonRepository { public function findByPhone( string $phonenumber,