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,