public function lastInsertId($name = null) { if ($name === 'models') { $name = 'models_modelid_seq'; } elseif ($name === 'variables_storage') { $name = 'variables_storage_variable_id_seq'; } elseif (!is_null($name)) { $name .= '_id_seq'; } else { throw new common_exception_MissingParameter('name', __CLASS__ . '::' . __FUNCTION__); } return parent::lastInsertId($name); }
public function lastInsertId($name = null) { if ($name === 'models') { $name = 'models_modelid_seq'; } else { if ($name === 'variables_storage') { $name = 'variables_storage_variable_id_seq'; } else { $name .= '_id_seq'; } } return parent::lastInsertId($name); }