/** * Method (override) to check if you can save a new or existing record. * * Adjusts for the primary key name and hands off to the parent class. * * @param array An array of input data. * @param string The name of the key for the primary key. * * @return boolean */ protected function _allowSave($data, $key = 'message_id') { return parent::_allowSave($data, $key); }