I was setting a custom validation for my User
model:
public function validation()
{
$this->validate(new \Phalcon\Mvc\Model\Validator\PresenceOf([
'field' => 'nick',
'message' => 'stupid validation'
]));
return !$this->validationHasFailed();
}
It throws the same default message everytime (nick is required
). Shouldn't be replaced with the new message? It worked the first time I did it (I thought).