Skip to content

Commit

Permalink
Merge pull request #5 from d-ph/do-not-translate-falsy-values-to-null
Browse files Browse the repository at this point in the history
Do not translate falsy values to sql NULL.
  • Loading branch information
boldtrn committed Oct 22, 2015
2 parents 5de39bd + 81ede47 commit c8b191e
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 c8b191e

Please sign in to comment.