"Title is already assigned", ); public function isValid($value) { $this->_setValue($value); $eventMapper = new Application_Model_EventMapper(); $sameEvent = $eventMapper->findBy(array("title" => $value)); if (count($sameEvent) > 0) { $this->_error(self::NOT_UNIQUE); return false; } else { return true; } } }