Skip to content

Commit bc580a7

Browse files
authored
docs: clarify Entity array casts (#10515)
1 parent 17b02c4 commit bc580a7

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

user_guide_src/source/models/entities.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,10 @@ the value whenever the property is set:
287287

288288
.. literalinclude:: entities/014.php
289289

290+
.. warning:: The ``array`` cast uses PHP serialization. Only read values previously
291+
written through the same Entity cast. Never store untrusted serialized strings
292+
directly in an ``array``-cast field.
293+
290294
CSV Casting
291295
-----------
292296

0 commit comments

Comments
 (0)