Skip to content

Commit b8d0072

Browse files
committed
added note about traversable objects
1 parent b1fe04f commit b8d0072

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

UPGRADING.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,18 @@ Upgrading From 0.9 to 1.0
1414

1515
Please see the documentation for how to set-up one of these.
1616

17+
- Objects implementing Traversable
18+
19+
Objects that implement the Traversable interface are not automatically treated specially
20+
anymore, but are serialized just like any regular object. If you would like to restore the
21+
previous behavior, you can either add a custom handler, or force the serialization type
22+
to ``array`` using the ``@Type`` annotation (or its equivalent in XML/YML):
23+
24+
```
25+
/** @Type("array") */
26+
private $myTraversableObject;
27+
```
28+
1729
- Configuration
1830
1931
Most of the configuration under ``jms_serializer.handlers`` is gone. The order is not

0 commit comments

Comments
 (0)