Skip to content

Commit f51f62e

Browse files
committed
update user guide
1 parent 0d112cf commit f51f62e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

user_guide_src/source/changelogs/v4.7.0.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ for objects and arrays instead of shallow comparison. This means:
5050
in nested structures, object properties, and array elements.
5151
- **Enums** (both ``BackedEnum`` and ``UnitEnum``) are properly tracked by their backing value
5252
or case name.
53+
- **DateTime objects** (``DateTimeInterface``) are compared using their ISO 8601 representation
54+
including timezone information.
55+
- **Collections** (``Traversable``) such as ``ArrayObject`` and ``ArrayIterator`` are converted
56+
to arrays for comparison.
5357
- **Nested entities** (using ``toRawArray()``), ``JsonSerializable`` objects, and objects with
5458
``toArray()`` methods are recursively normalized for accurate change detection.
5559
- **Scalar values** (strings, integers, floats, booleans, null) continue to use direct comparison

user_guide_src/source/models/entities.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,4 +382,5 @@ Objects and Arrays
382382

383383
For objects and arrays, the Entity JSON-encodes and normalizes the values for comparison. This means that modifications
384384
to nested structures, object properties, array elements, nested entities (using ``toRawArray()``), enums (``BackedEnum``
385-
and ``UnitEnum``), and objects implementing ``JsonSerializable`` or ``toArray()`` will be properly detected.
385+
and ``UnitEnum``), datetime objects (``DateTimeInterface``), collections (``Traversable``), and objects implementing
386+
``JsonSerializable`` or ``toArray()`` will be properly detected.

0 commit comments

Comments
 (0)