Jira issue originally created by user pcastrotigre:
I am trying to use RLIKE in my query but I am getting an error.
This is how I am trying to retrieve my data:
$query = $this->em->createQuery("
FROM User p
WHERE p.firstName RLIKE :param ");
And this is the error I am getting:
Error: Expected =, <, <=, <>, >, >=, !=, got 'RLIKE'
How should I use the RLIKE?
Comment created by @ocramius:
RLIKE is not supported by the ORM - you may want to implement a custom DQL function as described in http://www.doctrine-project.org/blog/doctrine2-custom-dql-udfs.html
You may also find a list of available implementations of various MySQL specific DQL functions at https://github.com/beberlei/DoctrineExtensions/tree/master/lib/DoctrineExtensions/Query/Mysql
Issue was closed with resolution "Invalid"