src/Repository/UserGroupRepository.php
<?php
declare(strict_types = 1);
/**
* /src/Repository/UserGroupRepository.php
*
* @author TLe, Tarmo Leppänen <tarmo.leppanen@pinja.com>
*/
namespace App\Repository;
use App\Entity\UserGroup as Entity;
use Doctrine\Persistence\ManagerRegistry;
/**
* @package App\Repository
* @author TLe, Tarmo Leppänen <tarmo.leppanen@pinja.com>
*
* @psalm-suppress LessSpecificImplementedReturnType
* @codingStandardsIgnoreStart
*
* @method Entity|null find(string $id, ?int $lockMode = null, ?int $lockVersion = null)
* @method Entity|null findAdvanced(string $id, string | int | null $hydrationMode = null)
* @method Entity|null findOneBy(array $criteria, ?array $orderBy = null)
* @method Entity[] findBy(array $criteria, ?array $orderBy = null, ?int $limit = null, ?int $offset = null)
* @method Entity[] findByAdvanced(array $criteria, ?array $orderBy = null, ?int $limit = null, ?int $offset = null, ?array $search = null)
* @method Entity[] findAll()
*
* @codingStandardsIgnoreEnd
*/
class UserGroupRepository extends BaseRepository
{
/**
* @psalm-var class-string
*/
protected static string $entityName = Entity::class;
/**
* @var array<int, string>
*/
protected static array $searchColumns = ['role', 'name'];
public function __construct(
protected ManagerRegistry $managerRegistry,
) {
}
}