Hello

For CakePHP 1.2 you can use my model behavior
http://bakery.cakephp.org/articles/view/transaction-behavior (Should work
with most databases, though it was developed for MySQL innodb)

 

If you do not wish to use it (Might be overkill for some people),  you
should be able to do just 

 

$this->ModelName->begin();  

$this->ModelName->commit();

$this->ModelName->rollback();

 

Since the overloaded php4/5 model base class is using the magic method
__call that just pass unknown commands for the model directly to the SQL
server as a command 

 

---

Christian "Jippi" Winther

http://docs.cakephp.nu (Unofficial CakePHP API) 

http://logs.cakephp.nu (Unofficial CakePHP IRC log)

 

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of Larry E. Masters aka PhpNut
Sent: 8. juli 2007 18:37
To: [email protected]
Subject: Re: Does cakephp support transaction now?

 

 

On 7/8/07, sTb <[EMAIL PROTECTED]> wrote:


Read the fucking manuall!
if you want to use more models in your application read
http://manual.cakephp.org/chapter/models


This will be the first and only warning, let it happen again and I will ban
you. 
There is no reason to use this language in the group.


-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public 
*/ 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to