public function getRecordExistsValidator() { if ($this->recordExistsValidator === NULL) { $validator = new RecordExists($this->getRecordExistsConfig()); $validator->setMessages(array(NoRecordExists::ERROR_NO_RECORD_FOUND => $this->getErrorMessage('RECORD_EXISTS::ERROR_NO_RECORD_FOUND'), NoRecordExists::ERROR_RECORD_FOUND => $this->getErrorMessage('NO_RECORD_EXISTS::ERROR_RECORD_FOUND'))); $this->setRecordExistsValidator($validator); } return $this->recordExistsValidator; }