You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// throws Symfony\Component\PropertyAccess\Exception\UninitializedPropertyException as normalizer cannot read uninitialized properties
1186
1197
1187
1198
.. note::
1188
1199
1189
-
Error is thrown only if you inject a ``ClassMetadataFactory`` into the normalizer.
1190
-
Otherwise the properties are checked with reflection and uninitialized ones are skipped.
1191
-
This option is useful when, for example, you want to serialize subset of properties by serialization groups,
1192
-
which requires the ``ClassMetadataFactory``
1200
+
Calling ``PropertyNormalizer::normalize`` or ``GetSetMethodNormalizer::normalize`` with ``AbstractObjectNormalizer::SKIP_UNINITIALIZED_VALUES`` context option set to ``false`` will throw an ``\Error`` instance if the given object has uninitialized properties as the normalizer cannot read them (directly or via getter/isser methods).
0 commit comments