Update query-builder.rst

->andWhere() can be used directly, without any ->where() before, and we can just always use ->andWhere(). This is why ->hasWhere() is useless, cf. #1043.
Update query-builder.rst
Merge pull request #1044 from ronanguilloux/patch-2

Use of ->andWhere() whithout any ->where() before is valid