1
0
mirror of synced 2025-01-18 22:41:43 +03:00
This commit is contained in:
Benjamin Eberlei 2012-07-04 22:15:36 +02:00
parent d75569abab
commit 6943244107

View File

@ -667,7 +667,9 @@ We will register the function by calling and can then use it:
.. code-block:: php
<?php
\Doctrine\ORM\Query\Parser::registerNumericFunction('FLOOR', 'MyProject\Query\MysqlFloor');
$config = $em->getConfiguration();
$config->registerNumericFunction('FLOOR', 'MyProject\Query\MysqlFloor');
$dql = "SELECT FLOOR(person.salary * 1.75) FROM CompanyPerson person";
Querying Inherited Classes