query = $this->loadService(UserUserGroupRepositoryQuery::class); } public function getDefaultOptionsSearch(): array { return [ 'with' => [], 'join_with' => [], 'orderby' => '', 'attribute_id_producer' => '' ] ; } public function findUserUserGroupsByUser(User $user) { return UserUserGroup::searchAll([ 'id_user' => $user->id ]); } }