Skip to content

Commit

Permalink
[FEATURE#21738] Ajout de la fonction replace
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Dubost committed Oct 13, 2015
1 parent 7c7018c commit ac2b24f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/DoctrineOrm.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ private function addCustomDqlTypes(Application $app)

$configuration = $app["orm.em"]->getConfiguration();

$configuration->addCustomStringFunction('REPLACE', 'DoctrineExtensions\Query\Mysql\Replace');

$configuration->addCustomStringFunction('MD5', 'DoctrineExtensions\Query\Mysql\Md5');
$configuration->addCustomStringFunction('SHA1', 'DoctrineExtensions\Query\Mysql\Sha1');
$configuration->addCustomStringFunction('SHA2', 'DoctrineExtensions\Query\Mysql\Sha2');
Expand Down

0 comments on commit ac2b24f

Please sign in to comment.