Hi,

There is also a function rollback(&$model). make check with your all queries
if any of them get fails then rollback() it and begin transaction again. you
can also modify rollback() function accordingly if it needs always.

Thanks,
Anuj Chauhan.

On Wed, Sep 10, 2008 at 11:42 AM, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:

>
> Hi,
>
> I am confused by cakephp transaction. Assume I have two tables like
> User, Product. When I start the transation, the code looks like,
>
> $this->User->begin()
> ...
> $this->User->commit()
>
> The question is, if any code between the above two lines failed to
> update/insert row in table Product, does it rollback? Does $this->User-
> >begin() mean we just start the transation on table User?
>
> I'd appreciate your help very much.
>
> Thanks,
> Bo
> >
>

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to