Re: Updating multiple models simultaneously

2007-01-06 Thread matt.babbs
Ouch - forgot to clean up my rather odd-looking test data. Sorry about that. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsu

Re: Updating multiple models simultaneously

2007-01-06 Thread matt.babbs
I'd already set Debug = 3, so I'm not sure that pr made any difference... Anyway, this is what I got. Sorry if the SQL doesn't display clearly. This is the SQL that Users/edit does initially: SELECT `User`.`id`, `User`.`username`, `User`.`passwd`, `User`.`name`, `User`.`email`, `User`.`last_vis

Re: Updating multiple models simultaneously

2007-01-05 Thread matt.babbs
Yes, I did the Profile belongsTo User bit too. From the User model: var $hasOne = array('Profile' => array('className' => 'Profile', 'conditions' => '', 'order' => '', 'depen

Updating multiple models simultaneously

2007-01-04 Thread matt.babbs
Bit of a newbie question here - I'm trying to update multiple models at once, but the foreign key keeps getting lost. I'm using CakePHP version 1.1.12.4205. I have User and Profile models. User hasOne Profile. When creating a new User and Profile it works fine, the associations are set up prop