thanks david,... I'll try,... On Monday, April 15, 2013 11:17:31 PM UTC-7, [email protected] wrote: > > You are doing a redirect inside of your loop which is kicking you out of > your loop. That is why only the first update works. > > Also, there is no need to use the query method. You would be better off > looping through the returned items and setting the privacy field and then > calling saveAll > i.e. > foreach ($photos as &$photo) > { > $photo['Photo']['privacy'] = 2; > } > $this->Photo->saveAll($photos); > >
-- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
