On Jul 16, 6:08 pm, djogo <[email protected]> wrote: > yeah, it's so stupidly easy to do it in MySQL, it's a shame that I > have to write any code at all in beforeSave() to accomplish the same > thing. > > RAPID DEVELOPMENT, they say. > > Maybe the model could have a "no-mess-field-list", or fields that will > be left alone when saving or updating.
If you're writing any code at all to fix this issue it should be in a test case and patch. Cake's goal is to not repeat code/process-logic that includes not doing something in php which you're already doing/ capable of doing in the DB layer (and it's just a consequence of CURRENT_TIMESTAMP not being understood correctly). If you already ticketed this please link to it from this thread. Cheers, AD Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
