feat(base-model): allow transaction on save/saveGraph
Summary
At the moment, save()
method from the BaseModel
will execute the query inside a transaction only if the entity is being updated.
In scope of this merge request save
and saveGraph
methods were updated to support transactions.
Edited by Andrei Mihăeș