I am making a Doctrine query and I have to do a wildcard match in the where clause. How should I escape the variable that I want to insert?
The query I want to get:
Something bad happened to Doctrine's documentation so here's the Google copy (check Like Expressions section)
... ->where('u.name LIKE ?', array("%$name%"));