If that is really true, can you please remove the `false` check in [this line](https://github.com/BenMorel/doctrine2/blob/default-lockmode/lib/Doctrine/ORM/Query/SqlWalker.php#L547)? I added that with my last modification because I was not sure whether it always is `Query` and `$this->query->getHint(Query::HINT_LOCK_MODE)` which you replaced could return `false`.