for example look at
http://api.cakephp.org/1.2/class_dbo_mysql.html#3a64483094ce5a2e6c921e937245ae54

Model::begin()
Model::commit()
Model::rollback()

On Tue, Apr 8, 2008 at 11:51 PM, Matt <[EMAIL PROTECTED]> wrote:
>
>  Hi group,
>
>  I have a complicated controller function that saves a couple of models
>  with a hasMany/belongsTo relationship. Since the models are dependent,
>  I have to save the parent before I can save the child.
>
>  What happens if my database server crashes in the middle of these
>  operations? My assumption is that I would end up with a childless
>  parent, which may cause problems when the operation was retried.
>
>  How are database commits managed so that the parent save is rolled
>  back if the child save fails? If Cake handles this automagically, is
>  there a way to manually control it in non-standard situations?
>
>  Many thanks,
>  Matt.
>  >
>



-- 
Marcin Domanski
http://kabturek.info

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