When a Doctrine query contains a datetime object this code will prevent htmlspecialchars failing
Merge pull request #9 from keesschepers/master

Prevent error message when there is a datetime object in the query result