Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions en/orm/entities.rst
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,12 @@ ways::
$user->title = 'foo'; // slug is set as well
$user->set('title', 'foo'); // slug is set as well

.. warning::

Accessors are also run before entities are persisted to the database.
If you want to transform fields but not persist that transformation,
we recommend using virtual properties as those are not persisted.

.. _entities-virtual-properties:

Creating Virtual Properties
Expand Down