Skip to content

Commit

Permalink
Update docs/en/cookbook/dql-user-defined-functions.rst
Browse files Browse the repository at this point in the history
Co-authored-by: Claudio Zizza <[email protected]>
  • Loading branch information
janedbal and SenseException authored Aug 5, 2024
1 parent 4adc704 commit 3f4de46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/en/cookbook/dql-user-defined-functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ Typed functions
By default, result of custom functions is fetched as-is from the database driver.
If you want to be sure that the type is always the same, then your custom function needs to
implement ``Doctrine\ORM\Query\AST\TypedExpression``. Then, the result is wired
through ``convertToPhpValue`` method of the ``Type`` returned from ``getReturnType``.
through ``Doctrine\DBAL\Types\Type::convertToPhpValue()`` of the ``Type`` returned in ``getReturnType()``.

.. code-block:: php
Expand Down

0 comments on commit 3f4de46

Please sign in to comment.