From 81ede47d35e208a118176b4b33dc6ad0e9d6775c Mon Sep 17 00:00:00 2001 From: d-ph Date: Thu, 22 Oct 2015 16:23:37 +0100 Subject: [PATCH] Revert "Dont update empty arrays to db" This reverts commit b69017a03d290b9edc3a76ccc03e9e2a568895ee. --- Types/JsonbArrayType.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/Types/JsonbArrayType.php b/Types/JsonbArrayType.php index b65c84b..cf40ff6 100644 --- a/Types/JsonbArrayType.php +++ b/Types/JsonbArrayType.php @@ -27,16 +27,4 @@ public function getName() return 'jsonb'; } - /** - * {@inheritdoc} - */ - public function convertToDatabaseValue($value, AbstractPlatform $platform) - { - if (null === $value || empty($value)) { - return null; - } - - return json_encode($value); - } - }