It is not working while saving the data while adding the data or while editing the existing data?
I have the same problem with cakephp 1.3 but while editing the associated model data using saveAll. If it is not saving the data while editing then in cakephp 1.3 you have to specify the related model primary key with the edited record. You have to take the profile id field in you form. So that you can get it after posting the form. $this->User->UserProfile->id = $this->data['UserProfile']['id']; If you have defined your associations correctly between the models then it has to work. If you have the relation then please recheck the associations or please put the code here so that we can verify it & tell you appropriate solution. On Fri, Jul 30, 2010 at 11:29 AM, Norman Paniagua <[email protected]>wrote: > Can you put the model code? > --- > > Norman Paniagua > > > 2010/7/30 Jeremy <[email protected]> > > today, I find function saveAll can not work ,when save data into two >> relations tables, blew is the data, >> >> Array >> ( >> [User] => Array >> ( >> [username] => tester >> [password] => 17acdc1ee8e4ed05e9d27fce4df6d4b5de036910 >> [email] => [email protected] >> [country_id] => 180 >> [captcha_input] => uhrfca >> [reg_ip] => 172.16.5.73 >> [confirm_code] => 4c526005-2038-4c84-b01f-0ccec0a8061f >> ) >> >> [UserProfile] => Array >> ( >> [birth] => 2009-02-12 >> ) >> >> ), and mysql ENGINE is MyISAM , anyone know the reason ? help me !!! >> >> 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 [email protected] >> To unsubscribe from this group, send email to >> [email protected]<cake-php%[email protected]>For >> more options, visit this group at >> http://groups.google.com/group/cake-php?hl=en >> > > 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 [email protected] > To unsubscribe from this group, send email to > [email protected]<cake-php%[email protected]>For > more options, visit this group at > http://groups.google.com/group/cake-php?hl=en > -- Thanks & Regards, Vijayk. "You Bring the Dreams, We'll Bring the Means" 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 [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
