Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

22 lines
541B

  1. <?php
  2. namespace common\logic\Feature\FeatureProducer;
  3. use common\logic\AbstractRepositoryQuery;
  4. use common\logic\Feature\Feature\Feature;
  5. class FeatureProducerRepositoryQuery extends AbstractRepositoryQuery
  6. {
  7. protected FeatureProducerDefinition $definition;
  8. public function loadDependencies(): void
  9. {
  10. $this->loadDefinition(FeatureProducerDefinition::class);
  11. }
  12. public function filterByFeature(Feature $feature): self
  13. {
  14. $this->andWhere(['id_feature' => $feature->id]);
  15. return $this;
  16. }
  17. }