Skip to content

Commit 0d1cba9

Browse files
committed
docs: fix incorrect description
1 parent 857113c commit 0d1cba9

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

user_guide_src/source/models/entities.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,12 @@ Property Casting
198198

199199
You can specify that properties in your Entity should be converted to common data types with the ``$casts`` property.
200200
This option should be an array where the key is the name of the class property, and the value is the data type it
201-
should be cast to. Casting only affects when values are read. No conversions happen that affect the permanent value in
202-
either the entity or the database. Properties can be cast to any of the following data types:
201+
should be cast to.
202+
203+
Property casting affects both read (get) and write (set), but some types affect
204+
only read (get).
205+
206+
Properties can be cast to any of the following data types:
203207
**integer**, **float**, **double**, **string**, **boolean**, **object**, **array**, **datetime**, **timestamp**, **uri** and **int-bool**.
204208
Add a question mark at the beginning of type to mark property as nullable, i.e., **?string**, **?integer**.
205209

0 commit comments

Comments
 (0)