Thanks, your advice led me to the solution. With the full debug on, I could see that before the INSERT query was executed, a SELECT COUNT(*) AS `count` FROM `users` AS `User` WHERE `User`.`email_confirm` = '[email protected]' was throwing an error. This was because I had a 'unique' validation rule set on the email_confirm field.
I removed the rule from the field and used your unset suggestion and the column is no longer included in the INSERT statement. So now it works... Thanks! On Feb 10, 7:04 pm, mscdex <[email protected]> wrote: > foldiman wrote: > > Cake wants an 'email_confirm' column in the Users table. This is key > > to what I'm trying to understand. I don't have a 'password_confirm' > > column EITHER. But for some reason, Cake does not mind. Is there a > > built in exception for a field called 'password_confirm'? > > Maybe you could unset the 'email_confirm' key in $this->data in the > beforeSave() callback so it won't try to save to a non-existing column. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
