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.

22 satır
490B

  1. <?php
  2. namespace domain\User\UserUserGroup;
  3. use domain\User\User\User;
  4. use domain\_\AbstractRepositoryQuery;
  5. class UserUserGroupRepositoryQuery extends AbstractRepositoryQuery
  6. {
  7. protected UserUserGroupDefinition $definition;
  8. public function loadDependencies(): void
  9. {
  10. $this->loadDefinition(UserUserGroupDefinition::class);
  11. }
  12. public function filterByUser(User $user): self
  13. {
  14. $this->andWhere(['id_user' => $user->id]);
  15. return $this;
  16. }
  17. }