Re: Rollback on multiple models

2009-01-11 Thread Henrik Gemal
No I cant use saveAll since I use some of the stuff from one of the save as input to another save. So a lot of funky stuff going on. saveAll is not an option :( On Jan 9, 6:48 pm, SiscoJ WEB siscoj...@gmail.com wrote: Can't u use saveAll() ? Transactions are default when using this method.

Rollback on multiple models

2009-01-09 Thread Henrik Gemal
I have a function in a model which contains multiple save operations also in different models. So my function in model x does something like: x-save() y-save() z-save() so it's only if all of the saves success that I want to commit. But can I do something like: x-begin() x-save() y-save()

Re: Rollback on multiple models

2009-01-09 Thread SiscoJ WEB
Can't u use saveAll() ? Transactions are default when using this method. best regards... On Jan 9, 12:47 pm, Henrik Gemal henrikge...@gmail.com wrote: I have a function in a model which contains multiple save operations also in different models. So my function in model x does something