Skip to content

Commit

Permalink
Revert "Dont update empty arrays to db"
Browse files Browse the repository at this point in the history
This reverts commit b69017a.
  • Loading branch information
ddera-printedcom committed Oct 22, 2015
1 parent 5de39bd commit 81ede47
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions Types/JsonbArrayType.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

}

0 comments on commit 81ede47

Please sign in to comment.