loadDefinition(ProductSubscriptionDefinition::class); } public function filterBySubscription(Subscription $subscription): self { $this->andWhere(['id_subscription' => $subscription->id]); return $this; } }