Skip to content

Commit

Permalink
Merge pull request #3557 from xhs345/patch-1
Browse files Browse the repository at this point in the history
3.1 Updates
  • Loading branch information
lorenzo committed Dec 13, 2015
2 parents 96583b4 + 54556d5 commit c6e0643
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions en/orm/table-objects.rst
Expand Up @@ -172,7 +172,7 @@ created and after the table's ``buildRules()`` method has been called.
beforeRules
--------------

.. php:method:: beforeRules(Event $event, Entity $entity, ArrayObject $options, $operation)
.. php:method:: beforeRules(Event $event, EntityInterface $entity, ArrayObject $options, $operation)
The ``Model.beforeRules`` event is fired before an entity has had rules applied. By
stopping this event, you can halt the rules checking and set the result
Expand All @@ -181,7 +181,7 @@ of applying rules.
afterRules
--------------

.. php:method:: afterRules(Event $event, Entity $entity, ArrayObject $options, bool $result, $operation)
.. php:method:: afterRules(Event $event, EntityInterface $entity, ArrayObject $options, bool $result, $operation)
The ``Model.afterRules`` event is fired after an entity has rules applied. By
stopping this event, you can return the final value of the rules checking
Expand All @@ -190,7 +190,7 @@ operation.
beforeSave
----------

.. php:method:: beforeSave(Event $event, Entity $entity, ArrayObject $options)
.. php:method:: beforeSave(Event $event, EntityInterface $entity, ArrayObject $options)
The ``Model.beforeSave`` event is fired before each entity is saved. Stopping
this event will abort the save operation. When the event is stopped the result
Expand All @@ -199,7 +199,7 @@ of the event will be returned.
afterSave
---------

.. php:method:: afterSave(Event $event, Entity $entity, ArrayObject $options)
.. php:method:: afterSave(Event $event, EntityInterface $entity, ArrayObject $options)
The ``Model.afterSave`` event is fired after an entity is saved.

Expand All @@ -217,15 +217,15 @@ not triggered if a transaction is started before calling save.
beforeDelete
------------

.. php:method:: beforeDelete(Event $event, Entity $entity, ArrayObject $options)
.. php:method:: beforeDelete(Event $event, EntityInterface $entity, ArrayObject $options)
The ``Model.beforeDelete`` event is fired before an entity is deleted. By
stopping this event you will abort the delete operation.

afterDelete
-----------

.. php:method:: afterDelete(Event $event, Entity $entity, ArrayObject $options)
.. php:method:: afterDelete(Event $event, EntityInterface $entity, ArrayObject $options)
The ``Model.afterDelete`` event is fired after an entity has been deleted.

Expand Down

0 comments on commit c6e0643

Please sign in to comment.