Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

SettingRepositoryQuery.php 563B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace domain\Setting;
  3. use domain\_\AbstractRepositoryQuery;
  4. class SettingRepositoryQuery extends AbstractRepositoryQuery
  5. {
  6. protected SettingDefinition $definition;
  7. public function loadDependencies(): void
  8. {
  9. $this->loadDefinition(SettingDefinition::class);
  10. }
  11. public function filterProducerIsNull(): self
  12. {
  13. $this->andWhere(['id_producer' => null]);
  14. return $this;
  15. }
  16. public function filterByName(string $name): self
  17. {
  18. $this->andWhere(['name' => $name]);
  19. return $this;
  20. }
  21. }