` to
+learn how to do that.
+
+The check is only done if the ``enable_max_depth`` key of the serializer context
+is set to ``true``. In the following example, the third level is not serialized
+because it is deeper than the configured maximum depth of 2::
+
+ $result = $serializer->normalize($level1, null, array('enable_max_depth' => true));
+ /*
+ $result = array(
+ 'foo' => 'level1',
+ 'child' => array(
+ 'foo' => 'level2',
+ 'child' => array(
+ 'child' => null,
+ ),
+ ),
+ );
+ */
+
Handling Arrays
---------------
pFad - Phonifier reborn
Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy