Doing UPDATE with Doctrine and a String as Parameter
Today I had to extend a few Doctrine queries and one of these modifications consisted of changing the parameter of an UPDATE query from integer to string – and whoops! It didn’t work anymore…
When using $query->getSql(); I noticed that it wanted to do something like this:
UPDATE data SET date = 2009-12-14 WHERE …
and of course [...]
