doctrine/doctrine2 — pull request #1044 by ronanguilloux (2014-05-29 14:31:53+00:00)
Title: Use of ->andWhere() whithout any ->where() before is valid

->andWhere() can be used directly, without any ->where() before: we can just _always_ use only ->andWhere(). This is why ->hasWhere() is useless, cf. #1043.