Doctrine Listeners

We’ve done a lot of work so its time to see one of the most powerful features of Doctrine: events. Using an ORM gives us the flexibility to have hooks that are executed whenever certain things are done, like when an entity is first persisted to the database, updated, or deleted.