DDC-3145: [GH-1044] Use of ->andWhere() whithout any ->where() before is valid #3901

Closed
opened 2026-01-22 14:31:08 +01:00 by admin · 3 comments
Owner

Originally created by @doctrinebot on GitHub (May 29, 2014).

Originally assigned to: @Ocramius on GitHub.

Jira issue originally created by user @doctrinebot:

This issue is created automatically through a Github pull request on behalf of ronanguilloux:

Url: https://github.com/doctrine/doctrine2/pull/1044

Message:

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

Originally created by @doctrinebot on GitHub (May 29, 2014). Originally assigned to: @Ocramius on GitHub. Jira issue originally created by user @doctrinebot: This issue is created automatically through a Github pull request on behalf of ronanguilloux: Url: https://github.com/doctrine/doctrine2/pull/1044 Message: ->andWhere() can be used directly, without any ->where() before: we can just _always_ use only ->andWhere(). This is why ->hasWhere() is useless, cf. #1043.
admin closed this issue 2026-01-22 14:31:08 +01:00
Author
Owner

@doctrinebot commented on GitHub (May 29, 2014):

Comment created by @ocramius:

Merged: 5d1275e938

@doctrinebot commented on GitHub (May 29, 2014): Comment created by @ocramius: Merged: https://github.com/doctrine/doctrine2/commit/5d1275e938145a37df6d700ac2ec0886805b5b79
Author
Owner

@doctrinebot commented on GitHub (May 29, 2014):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (May 29, 2014): Issue was closed with resolution "Fixed"
Author
Owner

@doctrinebot commented on GitHub (May 29, 2014):

Comment created by @doctrinebot:

A related Github Pull-Request [GH-1044] was closed:
https://github.com/doctrine/doctrine2/pull/1044

@doctrinebot commented on GitHub (May 29, 2014): Comment created by @doctrinebot: A related Github Pull-Request [GH-1044] was closed: https://github.com/doctrine/doctrine2/pull/1044
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#3901