add replace dql function

This commit is contained in:
2019-10-30 22:29:10 +01:00
parent 0da029c4be
commit 87a01e4ab3
3 changed files with 69 additions and 1 deletions

View File

@@ -32,6 +32,7 @@ use Chill\MainBundle\Doctrine\DQL\JsonAggregate;
use Chill\MainBundle\Doctrine\DQL\JsonbExistsInArray;
use Chill\MainBundle\Doctrine\DQL\Similarity;
use Chill\MainBundle\Doctrine\DQL\OverlapsI;
use Chill\MainBundle\Doctrine\DQL\Replace;
/**
* This class load config for chillMainExtension.
@@ -159,7 +160,8 @@ class ChillMainExtension extends Extension implements PrependExtensionInterface,
'string_functions' => array(
'unaccent' => Unaccent::class,
'GET_JSON_FIELD_BY_KEY' => GetJsonFieldByKey::class,
'AGGREGATE' => JsonAggregate::class
'AGGREGATE' => JsonAggregate::class,
'REPLACE' => Replace::class,
),
'numeric_functions' => [
'JSONB_EXISTS_IN_ARRAY' => JsonbExistsInArray::class,