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
minor #15823 [Serializer] Documenting the new SKIP_UNINITIALIZED_VALUES option (vuryss, ivannemets-sravniru)
This PR was merged into the 5.4 branch.
Discussion
----------
[Serializer] Documenting the new SKIP_UNINITIALIZED_VALUES option
Documents changes introduced here: symfony/symfony#41615
Original issue: symfony/symfony#40578
Docs issue: #15785
Commits
-------
08599e8 Update serializer.rst
034f0f6 [Serializer] Documenting the new SKIP_UNINITIALIZED_VALUES option
// throws Symfony\Component\PropertyAccess\Exception\UninitializedPropertyException as normalizer cannot read uninitialized properties
1296
+
1297
+
.. note::
1298
+
1299
+
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).
1300
+
1301
+
.. versionadded:: 5.4
1302
+
1303
+
The ``AbstractObjectNormalizer::SKIP_UNINITIALIZED_VALUES`` constant was introduced in Symfony 5.4.
0 commit comments