From 47c34609babfb4e5d5112b4c8c774932ce3c4279 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Darius=20Kri=C5=A1tapavi=C4=8Dius?= Date: Tue, 20 Oct 2015 16:40:01 +0300 Subject: [PATCH] Fix element value check --- Form/DataTransformer/ArrayEntityTransformer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Form/DataTransformer/ArrayEntityTransformer.php b/Form/DataTransformer/ArrayEntityTransformer.php index ebfae45..5b0c596 100644 --- a/Form/DataTransformer/ArrayEntityTransformer.php +++ b/Form/DataTransformer/ArrayEntityTransformer.php @@ -80,7 +80,7 @@ public function reverseTransformChildren($children, Config $parent = null) $value = array_filter($value); } - if (empty($value)) { + if (null === $value) { continue; } @@ -103,4 +103,4 @@ public function reverseTransformChildren($children, Config $parent = null) return $this->extension; } -} \ No newline at end of file +}