diff --git a/.travis.yml b/.travis.yml index 3b14169..39b76bc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,10 @@ language: php php: - - 5.5 + - 7.3 addons: - postgresql: "9.4" + postgresql: "9.6" before_script: - psql -c 'create database jsonb_test;' -U postgres @@ -14,4 +14,4 @@ script: - phpunit notifications: - email: boldtrn@gmail.com \ No newline at end of file + email: boldtrn@gmail.com diff --git a/Types/JsonbArrayType.php b/Types/JsonbArrayType.php index cf40ff6..6ef0137 100644 --- a/Types/JsonbArrayType.php +++ b/Types/JsonbArrayType.php @@ -2,14 +2,14 @@ namespace Boldtrn\JsonbBundle\Types; use Doctrine\DBAL\Platforms\AbstractPlatform; -use Doctrine\DBAL\Types\JsonArrayType; +use Doctrine\DBAL\Types\JsonType; /** * Array Type which can be used to generate jsonb arrays. It uses the Doctrine JsonArrayType * * @author Robin Boldt */ -class JsonbArrayType extends JsonArrayType +class JsonbArrayType extends JsonType { /** * {@inheritdoc} @@ -26,5 +26,13 @@ public function getName() { return 'jsonb'; } + + /** + * {@inheritdoc} + */ + public function requiresSQLCommentHint(AbstractPlatform $platform) + { + return true; + } }