Don't do that! Do it the way that CakePHP expects you to work with the database! :)
Create another model for the rolling_tmps table. Load this model in the controller, when you need it and where you need it, then perform your processing using both models. Enjoy, John On Mar 15, 2:57 pm, Chrriss <[email protected]> wrote: > Hi! > > I have a function where I use a different table from my model: > > "$this->User->Rolling->table = 'rolling_tmps';" > > then I make a request: > > "$modifyModel = $this->User->Rolling->find('first', array('conditions' > => array('Rolling.id' => $id)));" > > then I try to change the table for the second time: > > "$this->User->Rolling->table = 'rollings';" > > because I want to insert datas from table 'rolling_tmps' in the table > 'rollings' but cakePhp seems to still use 'rolling_tmps'... > > Can someone help me? Thank You! 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
