diff --git a/en/reference/dql-doctrine-query-language.rst b/en/reference/dql-doctrine-query-language.rst index a80b6f6ef..2ad6f5faf 100644 --- a/en/reference/dql-doctrine-query-language.rst +++ b/en/reference/dql-doctrine-query-language.rst @@ -667,7 +667,9 @@ We will register the function by calling and can then use it: .. code-block:: php getConfiguration(); + $config->registerNumericFunction('FLOOR', 'MyProject\Query\MysqlFloor'); + $dql = "SELECT FLOOR(person.salary * 1.75) FROM CompanyPerson person"; Querying Inherited Classes