Hi,

I would use something like following in one of the models to save data for
non-related InnoDB tables

$db =& ConnectionManager::getDataSource($this->useDbConfig);
$db->begin($this);

<save code here>

$db->commit($this);

Hope this helps.

Amit Badkas

PHP Applications for E-Biz: http://www.sanisoft.com



On Thu, Dec 23, 2010 at 7:46 PM, Zeu5 <kimc...@gmail.com> wrote:

> Alright thanks!
>
> On Dec 23, 8:55 pm, Jon Bennett <jmbenn...@gmail.com> wrote:
> > > Unfortunately the 7 models are not interrelated to each other, some
> > > are of course related.
> >
> > > So i am not sure if saveAll allows that non interrelated models.
> >
> > I've only used transactions in cake to save related data, though I
> > believe once a transaction has been triggered, it will wrap any
> > subsequent saveAll's as well - not certain on that, worth checking!
> >
> > not used the datasource way of doing it, sorry.
> >
> > hth
> >
> > Jo
> >
> > --
> > jon bennett -www.jben.net- blog.jben.net
>
> 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 cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com<cake-php%2bunsubscr...@googlegroups.com>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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to