[PR #1044] [MERGED] Use of ->andWhere() whithout any ->where() before is valid #9083

Closed
opened 2026-01-22 16:03:07 +01:00 by admin · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/doctrine/orm/pull/1044
Author: @ronanguilloux
Created: 5/29/2014
Status: Merged
Merged: 5/29/2014
Merged by: @Ocramius

Base: masterHead: patch-2


📝 Commits (2)

📊 Changes

1 file changed (+2 additions, -0 deletions)

View changed files

📝 docs/en/reference/query-builder.rst (+2 -0)

📄 Description

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


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/doctrine/orm/pull/1044 **Author:** [@ronanguilloux](https://github.com/ronanguilloux) **Created:** 5/29/2014 **Status:** ✅ Merged **Merged:** 5/29/2014 **Merged by:** [@Ocramius](https://github.com/Ocramius) **Base:** `master` ← **Head:** `patch-2` --- ### 📝 Commits (2) - [`495fe60`](https://github.com/doctrine/orm/commit/495fe6002d73ea8b548bfbc77eb5553bad357ffa) Update query-builder.rst - [`526c757`](https://github.com/doctrine/orm/commit/526c7579015cad576667ed48e0d68c72173b7a11) Update query-builder.rst ### 📊 Changes **1 file changed** (+2 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/en/reference/query-builder.rst` (+2 -0) </details> ### 📄 Description ->andWhere() can be used directly, without any ->where() before: we can just _always_ use only ->andWhere(). This is why ->hasWhere() is useless, cf. #1043. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
admin added the pull-request label 2026-01-22 16:03:07 +01:00
admin closed this issue 2026-01-22 16:03:07 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#9083