getSql
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 [...]

Share this on:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Add to favorites
  • email
  • MisterWong
  • MySpace
  • Reddit
  • RSS
  • Yahoo! Bookmarks
Read More
Posted on 14th December 2009No Comments