as soon as I abandon the 'all' paramter in my find() function, cake stops throwing this error.
but i need 'all' because i am expecting multiple entries On 15 Sep., 18:50, Tomfox Wiranata <[email protected]> wrote: > hi. > > I have two Models LinkTmp and LinkAttachment, hence two tables. these > two models have no relation at all, since the LinkTmp is just for > temporary storing, till the User finally saves his product. > > I want to save data from LinkTmp in LinkAttachment. Its nothing else > than copying the data from the temp table to the real target. So first > i get all the data from LinkTmp I need: > > $tmp_attachment = $this->LinkTmp->find('all', array('LinkTmp.abc =' => > $this -> Session -> read('Link.abc'), 'LinkTmp.attachment' => '1')); > > the result is multiple results. I checked. now i need to save these > results in LinkAttachment: > > $this->data['LinkAttachment']['filesize'] = $tmp_attachment['LinkTmp'] > ['size']; > $this->data['LinkAttachment']['filetype'] = $tmp_attachment['LinkTmp'] > ['filetype']; > $this->LinkAttachment->saveAll($this->data); > > now cake throws > > Notice (8): Undefined index: LinkTmp > > how is that possible? I used this model before in my view the same > way, just with pure find() and no 'all'... > > thanks !! 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
