mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 02:23:51 +00:00
adding custom dql function get_json_field_by_key and jsonaggregate
This commit is contained in:
@@ -26,6 +26,9 @@ use Symfony\Component\DependencyInjection\Loader;
|
||||
use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface;
|
||||
use Chill\MainBundle\DependencyInjection\Widget\Factory\WidgetFactoryInterface;
|
||||
use Chill\MainBundle\DependencyInjection\Configuration;
|
||||
use Chill\MainBundle\Doctrine\DQL\GetJsonFieldByKey;
|
||||
use Chill\MainBundle\Doctrine\DQL\Unaccent;
|
||||
use Chill\MainBundle\Doctrine\DQL\JsonAggregate;
|
||||
|
||||
/**
|
||||
* This class load config for chillMainExtension.
|
||||
@@ -128,7 +131,9 @@ class ChillMainExtension extends Extension implements PrependExtensionInterface,
|
||||
'orm' => array(
|
||||
'dql' => array(
|
||||
'string_functions' => array(
|
||||
'unaccent' => 'Chill\MainBundle\Doctrine\DQL\Unaccent'
|
||||
'unaccent' => Unaccent::class,
|
||||
'GET_JSON_FIELD_BY_KEY' => GetJsonFieldByKey::class,
|
||||
'AGGREGATE' => JsonAggregate::class
|
||||
)
|
||||
)
|
||||
)
|
||||
|
Reference in New Issue
Block a user