You can give a try to see if there is any invalid Field in it. [CODE] $errors = $this->LearningAgreement->invalidFields(); debug($errors); [/CODE]
On Sun, Jul 12, 2009 at 3:32 PM, James Brown <[email protected]>wrote: > > My Models: > LearningAgreement HABTM Substitution > > the array I give to the $this->LearningAgreement->saveAll(...) method > has the following structure > > Array > ( > [LearningAgreement] => Array > ( > [comment] => testing > ) > > [Substitution] => Array > ( > [0] => Array > ( > [comment] => test > ) > > ) > > ) > > When I use saveAll(), a "LearningAgreement" record is created but not > a "Substitution" record. I am not sure what array structure saveAll() > expects because it is not documented at > > http://book.cakephp.org/view/75/Saving-Your-Data#Saving-Related-Model-Data-HABTM-85 > > Hanging on this problem for 12 hours now. Any help is appreciated. > > > > > -- Thanks Joshua 5span Inc. <https://www.5span.com> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
