loadDefinition(DistributionRotatingDefinition::class); } public function filterByDistribution(Distribution $distribution): self { $this->andWhere(['distribution_rotating.id_distribution' => $distribution->id]); return $this; } public function filterByRotating(Rotating $rotating): self { $this->andWhere(['distribution_rotating.id_rotating' => $rotating->getId()]); return $this; } }