*/ interface UserGroupRepositoryInterface extends ObjectRepository { /** * Provide a SearchApiQuery for searching amongst user groups. */ public function provideSearchApiQuery(string $pattern, string $lang, string $selectKey = 'user-group'): SearchApiQuery; public function findByUser(User $user, bool $onlyActive = true, ?int $limit = null, ?int $offset = null): array; public function countByUser(User $user, bool $onlyActive = true): int; }