您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

UserUserGroupRepositoryQuery.php 490B

12345678910111213141516171819202122
  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. }