/** * Prepare for the import. * * @return \MUtil_Model_ModelTranslatorAbstract (continuation pattern) */ public function startImport() { if ($this->_targetModel instanceof \MUtil_Model_ModelAbstract) { $this->_targetModel->set('grs_gender', 'extraValueKeys', array('V' => 'F')); } return parent::startImport(); }
/** * Prepare for the import. * * @return \MUtil_Model_ModelTranslatorAbstract (continuation pattern) */ public function startImport() { if ($this->_targetModel instanceof \MUtil_Model_ModelAbstract) { // No multiOptions as a new items can be created during import $fields = array('gap_id_attended_by', 'gap_id_referred_by', 'gap_id_activity', 'gap_id_procedure', 'gap_id_location'); foreach ($fields as $name) { $this->_targetModel->del($name, 'multiOptions'); } } return parent::startImport(); }