Maybe your database doesnt support transactions ?
--
Marcin Domanski
http://kabturek.info


On Sun, Jul 13, 2008 at 10:39 AM, . <[EMAIL PROTECTED]> wrote:
> I have the following transaction, but even on errors, it does not rollback.
> Why?
>
> $this->List->begin();
> $this->List->create();
> $this->data['List']['id']=1;
> ... do so more set up
> $this->List->save($this->data)
>
> if (...is okay...)
>     $this->List->commit();
> else
>     $this->List->rollback();
>
> do i have the right syntax? I manually force the $this->List->rollback() to
> execute, but  I still see the record in the database. Why?
>
> Thanks
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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