Thursday, October 2, 2014

Re: cakephp3 equivalent of invalidate

$entity->errors('my_field', ['This is the error message']);

On Thursday, October 2, 2014 2:50:39 PM UTC+2, Rob Cowie wrote:
Hi all. In cake 1.3 I used to be able to use $model->invalidate('fieldname', 'This field is wrong!');

Is there an equivalent way to perform this task in cake3?

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: