Skip to content

Commit

Permalink
Added docblock on ORM/Table class about afterSaveCommit callback event
Browse files Browse the repository at this point in the history
  • Loading branch information
gmponos committed Feb 7, 2016
1 parent 35ee377 commit 44753c9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ORM/Table.php
Expand Up @@ -106,6 +106,12 @@
* - `afterSave(Event $event, EntityInterface $entity, ArrayObject $options)`
* Fired after an entity is saved.
*
* - `afterSaveCommit(Event $event, EntityInterface $entity, ArrayObject $options)`
* Fired after the transaction in which the save operation is wrapped has been committed.
* It’s also triggered for non atomic saves where database operations are implicitly committed.
* The event is triggered only for the primary table on which save() is directly called.
* The event is not triggered if a transaction is started before calling save.
*
* - `beforeDelete(Event $event, EntityInterface $entity, ArrayObject $options)`
* Fired before an entity is deleted. By stopping this event you will abort
* the delete operation.
Expand Down

0 comments on commit 44753c9

Please sign in to comment.