Yeah thanks, Not going to bother with it I think.
Since what I have works now I will just stick with it. dave -----Original Message----- From: Miles J [mailto:[email protected]] Sent: October-06-09 11:36 PM To: CakePHP Subject: Re: Proper way to validate related models? $options = array('validate' => 'first', 'fieldList' => array()); Im not sure you it would be structured, you can of course just try and add multiple models to the field list. On Oct 6, 6:03 pm, "Dave Maharaj :: WidePixels.com" <[email protected]> wrote: > I read the saveAll in the bookand it says define $fieldList but > looking at the saveAll it > > fieldList: Equivalent to the $fieldList parameter in Model::save() > > saveAll(array $data = null, array $options = array()) > > Where do youput the $fieldlist array and how is it structured? Per > model User => array('name', 'age') or all in one array('User.name', > 'Profile.color') > > Thanks, > > Dave > > -----Original Message----- > From: Miles J [mailto:[email protected]] > Sent: October-06-09 9:32 PM > To: CakePHP > Subject: Re: Proper way to validate related models? > > Or you can use saveAll() and pass and option of validate = first. > > http://book.cakephp.org/view/75/Saving-Your-Data --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
