mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-26 00:24:59 +00:00
33 lines
874 B
PHP
33 lines
874 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/*
|
|
* Chill is a software for social workers
|
|
*
|
|
* For the full copyright and license information, please view
|
|
* the LICENSE file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Chill\PersonBundle\Repository\Identifier;
|
|
|
|
use Chill\PersonBundle\Entity\Identifier\PersonIdentifierDefinition;
|
|
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
|
use Doctrine\Persistence\ManagerRegistry;
|
|
|
|
/**
|
|
* @template-extends ServiceEntityRepository<PersonIdentifierDefinition>
|
|
*/
|
|
class PersonIdentifierDefinitionRepository extends ServiceEntityRepository
|
|
{
|
|
public function __construct(ManagerRegistry $managerRegistry)
|
|
{
|
|
parent::__construct($managerRegistry, PersonIdentifierDefinition::class);
|
|
}
|
|
|
|
public function findByActive(): array
|
|
{
|
|
return $this->findBy(['active' => true]);
|
|
}
|
|
}
|