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.
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()
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