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.

24 lines
597B

  1. <?php
  2. namespace common\logic\User\UserGroup\Repository;
  3. use common\logic\AbstractRepositoryQuery;
  4. use common\logic\User\UserGroup\Model\UserGroup;
  5. use common\logic\User\UserGroup\Service\UserGroupDefinition;
  6. use yii\db\ActiveQuery;
  7. class UserGroupRepositoryQuery extends AbstractRepositoryQuery
  8. {
  9. protected UserGroupDefinition $definition;
  10. public function loadDependencies(): void
  11. {
  12. $this->loadDefinition(UserGroupDefinition::class);
  13. }
  14. public function filterByName(string $name): self
  15. {
  16. $this->andWhere(['name' => $name]);
  17. return $this;
  18. }
  19. }