/** * {@inheritDoc} * * Takes care of converting the input from a single radio button * to an array. */ public function bind($value) { if (!$this->getOption('multiple') && $this->getOption('expanded')) { $value = $value === null ? array() : array($value => true); } parent::bind($value); }
/** * {@inheritDoc} * * Takes care of converting the input from a single radio button * to an array. */ public function bind($value) { if (!$this->isMultipleChoice() && $this->isExpanded()) { $value = null === $value ? array() : array($value => true); } parent::bind($value); }