Commit bef906f 1 parent 548aae5 commit bef906f Copy full SHA for bef906f
File tree 2 files changed +13
-5
lines changed
2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 1
1
language : php
2
2
3
3
php :
4
- - 5.5
4
+ - 7.3
5
5
6
6
addons :
7
- postgresql : " 9.4 "
7
+ postgresql : " 9.6 "
8
8
9
9
before_script :
10
10
- psql -c 'create database jsonb_test;' -U postgres
@@ -14,4 +14,4 @@ script:
14
14
- phpunit
15
15
16
16
notifications :
17
- email : boldtrn@gmail.com
17
+ email : boldtrn@gmail.com
Original file line number Diff line number Diff line change 2
2
namespace Boldtrn \JsonbBundle \Types ;
3
3
4
4
use Doctrine \DBAL \Platforms \AbstractPlatform ;
5
- use Doctrine \DBAL \Types \JsonArrayType ;
5
+ use Doctrine \DBAL \Types \JsonType ;
6
6
7
7
/**
8
8
* Array Type which can be used to generate jsonb arrays. It uses the Doctrine JsonArrayType
9
9
*
10
10
* @author Robin Boldt <boldtrn@gmail.com>
11
11
*/
12
- class JsonbArrayType extends JsonArrayType
12
+ class JsonbArrayType extends JsonType
13
13
{
14
14
/**
15
15
* {@inheritdoc}
@@ -26,5 +26,13 @@ public function getName()
26
26
{
27
27
return 'jsonb ' ;
28
28
}
29
+
30
+ /**
31
+ * {@inheritdoc}
32
+ */
33
+ public function requiresSQLCommentHint (AbstractPlatform $ platform )
34
+ {
35
+ return true ;
36
+ }
29
37
30
38
}
You can’t perform that action at this time.
0 commit comments