function AbstractObjectNormalizerContextBuilder::withDeepObjectToPopulate
Configures whether to tell the denormalizer to also populate existing objects on attributes of the main object.
Setting this to true is only useful if you also specify the root object in AbstractNormalizer::OBJECT_TO_POPULATE.
File
-
vendor/
symfony/ serializer/ Context/ Normalizer/ AbstractObjectNormalizerContextBuilder.php, line 118
Class
- AbstractObjectNormalizerContextBuilder
- A helper providing autocompletion for available AbstractObjectNormalizer options.
Namespace
Symfony\Component\Serializer\Context\NormalizerCode
public function withDeepObjectToPopulate(?bool $deepObjectToPopulate) : static {
return $this->with(AbstractObjectNormalizer::DEEP_OBJECT_TO_POPULATE, $deepObjectToPopulate);
}