Skip to content
This repository has been archived by the owner on May 27, 2023. It is now read-only.

Commit

Permalink
use ServiceEntityRepository
Browse files Browse the repository at this point in the history
  • Loading branch information
Guite committed Apr 1, 2019
1 parent 0b6766f commit b41d076
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Entity/Repository/PropertyRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,19 @@

namespace Zikula\ProfileModule\Entity\Repository;

use Doctrine\ORM\EntityRepository;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Common\Persistence\ManagerRegistry;
use Zikula\Bundle\FormExtensionBundle\DynamicFieldsContainerInterface;
use Zikula\ProfileModule\Entity\PropertyEntity;
use Zikula\ProfileModule\Entity\RepositoryInterface\PropertyRepositoryInterface;

class PropertyRepository extends EntityRepository implements PropertyRepositoryInterface, DynamicFieldsContainerInterface
class PropertyRepository extends ServiceEntityRepository implements PropertyRepositoryInterface, DynamicFieldsContainerInterface
{
public function __construct(ManagerRegistry $registry)
{
parent::__construct($registry, PropertyEntity::class);
}

public function getIndexedActive(): array
{
$qb = $this->createQueryBuilder('p', 'p.id')
Expand Down

0 comments on commit b41d076

Please sign in to comment.