Ding ding ding!  We have a winner.  :-)  Yes, the whitelist is indeed
the correct solution.

On Jan 12, 6:09 pm, lordG <[EMAIL PROTECTED]> wrote:
> Hey Nate,
>
> I think i may have possible, just slightly, hopfully found the
> solution... which is the whitelist and to add to the saveAll call
> like:
>
> $this->saveAll($records, array('fieldList' => array('field1',
> 'field2')));
>
> It does the job, so am I correct here? :)
>
> P.S. Apologies Nate and Chris for the immediate suggestions, a bit
> hasty, defintely! LOL. You guys have done a good job! :D
>
> nate wrote:
> > On Jan 12, 3:07�pm, lordG <[EMAIL PROTECTED]> wrote:
> > > My suggestion would be at least to assign a variable to the model like
> > > $assignDefaults = true/false, which can control if the save grabs the
> > > defaults or not.
>
> > And my suggestion would be to read more carefully and try to pay
> > attention before pointing out something you think is wrong.  You seem
> > so diligent in examining the details of the source code, and yet you
> > missed it.  It's right there in front of you.  I'll give you a few
> > days to see if you can figure it out before posting the solution.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to