mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-18 04:34:59 +00:00
30 lines
818 B
PHP
30 lines
818 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\CustomFieldsBundle\EntityRepository;
|
|
|
|
use Chill\CustomFieldsBundle\Entity\CustomFieldsDefaultGroup;
|
|
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
|
use Doctrine\Persistence\ManagerRegistry;
|
|
|
|
class CustomFieldsDefaultGroupRepository extends ServiceEntityRepository
|
|
{
|
|
public function __construct(ManagerRegistry $registry)
|
|
{
|
|
parent::__construct($registry, CustomFieldsDefaultGroup::class);
|
|
}
|
|
|
|
public function findOneByEntity(string $className): ?CustomFieldsDefaultGroup
|
|
{
|
|
return $this->findOneBy(['entity' => $className]);
|
|
}
|
|
}
|