Wednesday, September 2, 2015

Re: Compare 2 date in cake3

And that's normal and make sense because $calendar->start_date and $calendar->end_date are the only fields for which you use setters...

Le 2 sept. 2015 12:07, "lorenzoshake" <ferri.lorenzo@gmail.com> a écrit :


Il giorno mercoledì 2 settembre 2015 11:24:15 UTC+2, Anthony GRASSIOT ha scritto:

That what I thought. Validation is not applied if you set the value directly with a setter like you does. You need to use patchEntity().


i think so, but the other validation rules works fine! 

--
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.

--
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: