when saving data from my form I get an empty date on create field if I use save()
and it works well if I use saveAll()
does anyone knows why?
isn’t it suppose to work both ways?
I’m using cake 1.3.5
thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It should work in both ways indeed and this is really long time feature that it’s working since cake1.2 or less. I would say that you messed up something, than this is core problem.
Check if the database field is DATETIME. Also check if you modify it in beforeSave.