diff --git a/en/orm/entities.rst b/en/orm/entities.rst index 6aa19307b7..dc705399d4 100644 --- a/en/orm/entities.rst +++ b/en/orm/entities.rst @@ -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