There can't be a primary key ID of 0 as 0 = false.  As such you're not
passing an id to saveField  so it's running an INSERT instead of an
UPDATE.

You need to take a look at your db table definition as it should not
allow a primary key of 0 if it's an INT/Primary Key/Auto Increment
which it should be.

HTH

Paul

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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe from this group, send email to 
cake-php+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to