public function add(WizardInterface $wizard) { if (FALSE === $this->wizards->contains($wizard)) { $this->wizards->attach($wizard); $wizard->setParent($this); } return $this; }