Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

INVO error

mysite.com/invoices/profile - I try edit anything ... Try "Update"

Catchable fatal error: Argument 1 passed to Phalcon\Mvc\Model::validate() must implement interface Phalcon\ValidationInterface, instance of Phalcon\Mvc\Model\Validator\Email given in \app\models\Users.php on line 13

I found a bug (typo) phalcon 2.1.0. But In 2.0.9 all work well



6.9k
Accepted
answer

Validation was rewritten in version 2.1 and model validation is deprecated https://blog.phalconphp.com/post/phalcon-2-1-beta-released it will be surely reflected in Invo when 2.1 will be out



3.8k

return $this->validate(); Not work ... My be need registration "validator" as service?