hi andrei, i am using saveAll but it is still saving just the first result...
On 15 Sep., 15:31, Andrei Mita <[email protected]> wrote: > I don't know if I got it right but saveAll might help. Take a look > here:http://book.cakephp.org/view/1031/Saving-Your-Data > > On Wed, Sep 15, 2010 at 4:21 PM, Tomfox Wiranata > <[email protected]>wrote: > > > hi, > > > I have a find() method that will find return multiple results from my > > table: > > > $tmp_attachment = $this->LinkTmp->find(array('LinkTmp.cat ' => $this - > > > Session -> read('Link.cat'), 'LinkTmp.attachment' => '1')); > > > now i now, that i can save the result like this > > > $this->data['LinkAttachment']['filetype'] = $tmp_attachment['LinkTmp'] > > ['filetype']; > > etc > > etc > > > BUT: i somehow have to loop through the $tmp_attachment array, since > > there are multiple entries stored. i just get to save one.... > > > any idea? > > > thank you :) > > > 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]<cake-php%[email protected]>For > > more options, visit this group at > >http://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
