9.12 How to Send Notifications Upon a Successful Commit
The afterCommit()
method is invoked on each entity row that was in the pending changes list and got successfully saved to the database. You might use this method to send an email notification about the change in state of an entity.