mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-2149: lte with or conditional not working #2705
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 (Nov 16, 2012).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user jhvaras:
$qb->select(array('c.id'))
->from('Veiss\BoletusBundle\Entity\Calendar', 'c')
->where("(c.endDate >= 111) OR (c.startDate >= 222)")
returns correctly:
"SELECT c0_.id AS id0 FROM Calendar c0_ WHERE (c0_.endDate >= 111) OR (c0_.startDate >= 222)"
but lte condition:
->where("(c.endDate <= 111) OR (c.startDate >= 222)")
returns incorrectly:
"SELECT c0_.id AS id0 FROM Calendar c0_ WHERE (c0_.endDate = 222)"
I have tested that an same occurs with "expr()->lte"
@doctrinebot commented on GitHub (Nov 16, 2012):
Comment created by jhvaras:
Tested and issued in v2.1.7
@doctrinebot commented on GitHub (Nov 16, 2012):
Comment created by @ocramius:
Can you please try upgrading? 2.1.x won't get any more updates as far as I know.
@doctrinebot commented on GitHub (Nov 16, 2012):
Comment created by jhvaras:
Hi Marco,
We cannot upgrade as we are developing under Symfony 2.0
Thx
@doctrinebot commented on GitHub (Jan 6, 2013):
Comment created by @beberlei:
Cannot reproduce issue with the attached test-case. Works perfectly with 2.1.7
@doctrinebot commented on GitHub (Jan 6, 2013):
Issue was closed with resolution "Cannot Reproduce"