/** * Sets the keys, processing the array key. * * When an array key is numeric \MUtil_Model::REQUEST_ID is used. * When there is more than one key a increasing number is added to * \MUtil_Model::REQUEST_ID starting with 1. * * String key names are left as is. * * @param array $keys [alternative_]name or number => name * @return \MUtil_Model_ModelAbstract (continuation pattern) */ public function setKeys(array $keys) { if (!isset($keys[$this->_modelField])) { $keys[$this->_modelField] = $this->_modelField; } return parent::setKeys($keys); }