To use 'validate'=>false as you are, disables the validation! So, this way, saveAll will always return 1
On 22 abr, 14:27, cricket <[email protected]> wrote: > The trouble is, it ain't working. My data looks like so: > > Array > ( > [ElectionVote] => Array > ( > [0] => Array > ( > [member_id] => 192 > [ballot_id] => 2 > ) > > [1] => Array > ( > [member_id] => 192 > [ballot_id] => 6 > ) > > [2] => Array > ( > [member_id] => 192 > [ballot_id] => 10 > ) > > [3] => Array > ( > [member_id] => 192 > [ballot_id] => 16 > ) > > [4] => Array > ( > [member_id] => 192 > [ballot_id] => 22 > ) > ) > ) > > controller: > > if ($this->ElectionVote->saveAll($this->data, array('validate' => > false))) > { > // redirect > > The saveAll() returns 1, the redirect is occurring, but nothing is > saved! > > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with > their CakePHP related questions. > > 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 > athttp://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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
