Skip to content

Commit c48ed13

Browse files
committed
docs: add note for setter and getter with data mapping
1 parent 9c8d05e commit c48ed13

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

user_guide_src/source/models/entities.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,10 @@ through the original ``$user->full_name``, also, as this is needed for the model
164164
to the database. However, ``unset()`` and ``isset()`` only work on the mapped property, ``$user->name``, not on the database column name,
165165
``$user->full_name``.
166166

167+
.. note:: When you use Data Mapping, you must define ``set*()`` and ``get*()`` method
168+
for the database column name. In this example, you must define ``setFullName()`` and
169+
``getFullName()``.
170+
167171
Mutators
168172
========
169173

0 commit comments

Comments
 (0)