Closed Vassyli closed 7 years ago
Yeah I looked briefly into transactions for this but it didnt seem like doctrine supported nested transactions. I can look again later.
Is there any reason for flushing (->save()) the module entity before running onRegister except for getting an id? I think there might be 2 possible solutions to this:
Currently, if an error occurs during registering of a module, the module still is partially installed (it gets a database entry in the table module), while not saving the parts added in onRegister. This makes manual intervention necessary.