Search code examples
symfonydoctrine-ormdql

dql - doctrine2 - symfony2 -> soundex


i can't find anything about dql and soundex. Has anybody an idea how to use soundex with dql?

This is my example query:

$this->getEntityManager()->createQuery('SELECT e FROM event e 
WHERE e.title SOUNDEX(:title)'); 

Thank you very much.


Solution

  • You have to implement new DQL function and then register it in symfony.