You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

UserUserGroupRepository.php 618B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace common\logic\User\UserUserGroup;
  3. use common\logic\BaseService;
  4. use common\logic\RepositoryInterface;
  5. use common\logic\User\User\User;
  6. class UserUserGroupRepository extends BaseService implements RepositoryInterface
  7. {
  8. public function getDefaultOptionsSearch(): array
  9. {
  10. return [
  11. 'with' => [],
  12. 'join_with' => [],
  13. 'orderby' => '',
  14. 'attribute_id_producer' => ''
  15. ] ;
  16. }
  17. public function findUserUserGroupsByUser(User $user)
  18. {
  19. return UserUserGroup::searchAll([
  20. 'id_user' => $user->id
  21. ]);
  22. }
  23. }