/** * {@inheritdoc} */ public function removeRule(PromotionRuleInterface $rule) { $rule->setPromotion(null); $this->rules->removeElement($rule); }