Skip to content

Commit

Permalink
Note on save
Browse files Browse the repository at this point in the history
Added a note on saving
  • Loading branch information
davidyell committed Oct 28, 2014
1 parent 1e70011 commit db21548
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions en/orm/table-objects.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1335,6 +1335,11 @@ When an entity is saved a few things happen:
belongsToMany associations will be saved.
9. The ``Model.afterSave`` event will be dispatched.

.. warning::

If no changes are made to the entity when it is saved, the callbacks will
not fire because no save is performed.

The ``save()`` method will return the modified entity on success, and ``false``
on failure. You can disable validation and/or transactions using the ``$options`` argument for
save::
Expand Down

0 comments on commit db21548

Please sign in to comment.