John David Anderson (_psychic_) ha scritto: > On Aug 17, 2006, at 4:27 AM, M wrote: > > > > > Hello, > > > > I read a few emails about the lacking of transaction management in > > Cake. > > As I am building a web application with Cake for a potential customer, > > i wonder how > > to assure that my application has consistent data on the database. > > > > For example, if I write some data to the DB, and at a certain point a > > SQL error occurs, how I am supposed to "rollback" the entire > > transaction? > > Is there any technique to do so or i should stop and move to another > > framework? > > Fear not, and do not abandon all hope. Rather, check out yonder API. > > Check out Model::begin(), Model::commit(), and Model::rollback(). > > Yet another baker saved from the icy clutches of a second-rate, non- > CakePHP framework. > > -- John
Hello John, I tried converting a table to engine INNODB and setting the property $transactional in the corresponding model, and it works. Thank you VERY MUCH. -- Michele --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---