mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
FROM_BASE64 function is undefined #5693
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @messam88 on GitHub (Sep 7, 2017).
TO_BASE64 mysql function works fine but FROM_BASE64 function is undefined while executing row sql.
@Ocramius commented on GitHub (Sep 7, 2017):
No such function: https://github.com/doctrine/doctrine2/tree/master/lib/Doctrine/ORM/Query/AST/Functions
@beberlei commented on GitHub (Sep 16, 2017):
See the documentation about adding your own functions:
http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/dql-doctrine-query-language.html#adding-your-own-functions-to-the-dql-language
Both
TO_BASE64andFROM_BASE64would be custom functions and you need to add them yourself. In your project somebody might already have added justTO_BASE64.