Wednesday, August 1, 2012

Re: [Models] saveAll doesn't work

Did you look at the clear-as-day MySQL error you were given?

"SQLSTATE[23502]: Not null violation: 7 ERROR: null value in column "body" violates not-null constraint"

You are entering in a null value into the "body" column which does not allow null values. So either change the table so that "body" DOES accept null values, or ensure that the data you're saving has a non-null "body" value.

On Tuesday, July 31, 2012 3:12:03 AM UTC-7, TWEESTY wrote:
Up. 

Thanks ! 

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: