public function addRadio(RadioField $radio) { $this->radios[] = $radio; if ($radio->getMappingName()) { $this->mapping = $radio->getMappingName(); } $radio->setParent($this); }