This Page

<?phpusePhalcon\Mvc\Model\MessageasMessage;classRobotsextendsPhalcon\Mvc\Model{publicfunctionbeforeSave(){if($this->name=='Peter'){$text="A robot cannot be named Peter";$field="name";$type="InvalidValue";$code=103;$message=newMessage($text,$field,$type,$code);$this->appendMessage($message);}}}