I am using a
db_transaction() for some data updates. I am using some
EntityMetadataWrappers, modify some data, then save.
The thing is, the wrapper
->save() function doesn't have a parameter for
$transaction like the entity controller does:
If I don't pass in a transaction, it will call
db_transaction() when one already exists.
- What will happen in this case during commit or rollback of the outer transaction?
- If a new transaction is created, does this commit the one that already existed?
- If a rollback of the outer one won't rollback the inner one, or if it messes up stuff when a new one is created, then is there a way to do it all in one transaction?
Note: I'm using MariaDB.