On Thu, May 8, 2008 at 4:50 PM, Jose Selesan <[EMAIL PROTECTED]> wrote:
> Hi all, does anybody know if I can save a model with a hasMany relation > and each of the related models has a hasMany relation? > > Hi have a model called Trivia with a 'hasMany' relation to model Pregunta > and model Pregunta has a 'hasMany' relation to model Opcion. But when I call > $this->Trivia->saveAll($this->data) in my controller, it only saves Trivia > and their related Pregunta, but not Opcion It should work - try with the latest SVN check out If does not work then take a look at the related test - modify it for one more level and submit as a bug report Tarique -- ============================================================= Cheesecake-Photoblog: http://cheesecake-photoblog.org PHP for E-Biz: http://sanisoft.com ============================================================= --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---