Hi! Thanks for the help!
Got it resolved. Actually the fault was mine. I was validating the foreign key user_id in both child models UserProfile and UserContact. Thats why the saveAll($this->data, array('validate' => 'only')) or saveAll($this->data, array('validate' => 'first')) was failing. Now removed the validation for user_id in both models and got it work. Currently first validating using saveAll($this->data, array('validate' => 'only')) And then saving as saveAll($this->data, array('validate' => false)) Thanks and regards! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---