You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The outer transaction created by DbTest prevents the event from firing because Model.afterSaveCommit only fires if it is not currently in a transaction.
A possible solution to this would be to not use Connection::begin & friends to handle the transaction in the FixtureInjector. Those methods track the transaction state internally. Instead it might work if you start the transaction outside of those methods:
The outer transaction created by DbTest prevents the event from firing because Model.afterSaveCommit only fires if it is not currently in a transaction.
A possible solution to this would be to not use
Connection::begin
& friends to handle the transaction in the FixtureInjector. Those methods track the transaction state internally. Instead it might work if you start the transaction outside of those methods:This way the internal state of
Connection
isn't aware of the outer transaction. This should cause Model.afterSaveCommit to fire again.The text was updated successfully, but these errors were encountered: