loadQuery(UserUserGroupRepositoryQuery::class); } public function getDefaultOptionsSearch(): array { return [ self::WITH => [], self::JOIN_WITH => [], self::ORDER_BY => '', self::ATTRIBUTE_ID_PRODUCER => '' ]; } public function findUserUserGroupsByUser(User $user) { return $this->createDefaultQuery() ->filterByUser($user) ->find(); } }