Hello, i have the following (example) piece of code: ... 1- $this->model->begin(); 2- $result = $this->model->save(); 3- $sql = 'call myprocedure()'; 4- $this->model->execute( $sql ); 5 -$this->model->commit();
now, my problem is that i want statements 2 and 4 to be atomic, but if there is an error in the statement 4, the model is still saved. How can I structure the code to make the statements 2 and 4 atomic? I know I can test the return code for statement 2, but I don't know how to do it with statement 4. Thanks -- Michele --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
