/** * Overrides populate() in App_Form * * @param mixed $data * @access public * @return void */ public function populate($data) { if (isset($data['id']) && is_numeric($data['id'])) { $element = $this->getElement('flag_id'); $options = $element->getMultiOptions(); unset($options[$data['id']]); $element->setMultiOptions($options); } parent::populate($data); }