diff --git a/Form/EventListener/BindRequestListener.php b/Form/EventListener/BindRequestListener.php index e0951f0..24e3cf6 100644 --- a/Form/EventListener/BindRequestListener.php +++ b/Form/EventListener/BindRequestListener.php @@ -113,7 +113,7 @@ private function unserializeForm($data, $form, $isXml, $isPatch) // If we are PATCHing then don't fill in missing attributes with null $childValue = $this->unserializeForm($value, $child, $isXml, $isPatch); - if (!($isPatch && !$childValue)) $result[$child->getName()] = $childValue; + if (!($isPatch && is_null($childValue))) $result[$child->getName()] = $childValue; } return $result;