improve money type rendering + DQL "jsonbexistsInArray"

This commit is contained in:
2018-06-22 10:09:04 +02:00
parent c059fe8a95
commit 8624b3f941
4 changed files with 65 additions and 1 deletions

View File

@@ -29,6 +29,7 @@ use Chill\MainBundle\DependencyInjection\Configuration;
use Chill\MainBundle\Doctrine\DQL\GetJsonFieldByKey;
use Chill\MainBundle\Doctrine\DQL\Unaccent;
use Chill\MainBundle\Doctrine\DQL\JsonAggregate;
use Chill\MainBundle\Doctrine\DQL\JsonbExistsInArray;
/**
* This class load config for chillMainExtension.
@@ -141,7 +142,10 @@ class ChillMainExtension extends Extension implements PrependExtensionInterface,
'unaccent' => Unaccent::class,
'GET_JSON_FIELD_BY_KEY' => GetJsonFieldByKey::class,
'AGGREGATE' => JsonAggregate::class
)
),
'numeric_functions' => [
'JSONB_EXISTS_IN_ARRAY' => JsonbExistsInArray::class
]
)
)
));