mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-1155: Where statements not being appended #1450
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (May 17, 2011).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user nbyloff:
When I try an append new where statements using $qb->expr(), only the last where statement remains, all previous ones are overwritten. Here is an example of how I encountered this issue:
The echo output is:
This does not happen when I use a statement like this:
@doctrinebot commented on GitHub (Jun 5, 2011):
Comment created by @beberlei:
Formatting
@doctrinebot commented on GitHub (Jun 5, 2011):
Comment created by @beberlei:
Yes that is expected, look at how andWhere() is implemented. The wiggling with ->add() is rather cumbersome and should be avoided if possible.
@doctrinebot commented on GitHub (Jun 5, 2011):
Issue was closed with resolution "Invalid"