Skip to content
Michael O'Connell edited this page Apr 28, 2016 · 2 revisions

Symfony events are dispatched for every stage of the object lifecycle. ObjectName here is the class without namespace.

  1. DataObject.beforeSave
  2. DataObject.{ObjectName}.beforeSave
  3. DataObject.beforeInsert
  4. DataObject.{ObjectName}.beforeInsert
  5. DataObject.beforeUpdate
  6. DataObject.{ObjectName}.beforeUpdate
  7. DataObject.afterSave
  8. DataObject.{ObjectName}.afterSave
  9. DataObject.afterInsert
  10. DataObject.{ObjectName}.afterInsert
  11. DataObject.afterUpdate
  12. DataObject.{ObjectName}.afterUpdate
  13. DataObject.loaded
  14. DataObject.{ObjectName}.loaded
  15. DataObject.beforeDelete
  16. DataObject.{ObjectName}.beforeDelete
  17. DataObject.afterDelete
  18. DataObject.{ObjectName}.afterDelete