As per the title, how would one match on a regular expression with the Doctrine 2 query builder? Basically I\'m trying to generate unique slugs.
Here is my current
I did like this
$query->andWhere('REGEXP(r.status, :text) = 1') ->orWhere('REGEXP(r.comment, :text) = 1') ->setParameter('text',MY REGULAR EXP);