mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-3508: andWhere('... OR...') syntax ignores a newly added field #4321
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 (Jan 16, 2015).
Originally assigned to: @guilhermeblanco on GitHub.
Jira issue originally created by user delphiki:
Doctrine v2.3.6
All caches cleared before reporting.
After adding a new field on an already existing entity (field "question" on a "News" entity), this field is ignored when using the addWhere('.... OR ...') syntax, while it's working using a $qb->expr()->orX() syntax:
Not working (missing "question" column in SELECT of the generated SQL, and objects hydrated with a question's value of null) :
This syntax works:
Notes:
@doctrinebot commented on GitHub (Jan 23, 2015):
Issue was closed with resolution "Invalid"
@doctrinebot commented on GitHub (Jan 23, 2015):
Comment created by @ocramius:
[~delphiki] why was this marked as invalid? Was it already fixed in 2.4?