public function addOption(AbstractOption $option) { $this->options[] = $option; if ($this->select) { $option->setSelect($this->getSelect()); } }