loadDefinition(RotatingProductDefinition::class); } public function filterByRotating(Rotating $rotating): self { $this->andWhere(['rotating_product.id_rotating' => $rotating->getId()]); return $this; } }