[DBAL-534] RLIKE Created: 29/May/13 Updated: 29/May/13 Resolved: 29/May/13
|Reporter:||Petter Castro||Assignee:||Marco Pivetta|
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("
And this is the error I am getting:
Error: Expected =, <, <=, <>, >, >=, !=, got 'RLIKE'
How should I use the RLIKE?
|Comment by Marco Pivetta [ 29/May/13 ]|
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