Skip to content

Loading…

DDC-2149: lte with or conditional not working #2838

Closed
doctrinebot opened this Issue · 5 comments

2 participants

@doctrinebot

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

Comment created by jhvaras:

Tested and issued in v2.1.7

@doctrinebot

Comment created by @ocramius:

Can you please try upgrading? 2.1.x won't get any more updates as far as I know.

@doctrinebot

Comment created by jhvaras:

Hi Marco,

We cannot upgrade as we are developing under Symfony 2.0

Thx

@doctrinebot

Comment created by @beberlei:

Cannot reproduce issue with the attached test-case. Works perfectly with 2.1.7

@doctrinebot

Issue was closed with resolution "Cannot Reproduce"

@beberlei beberlei was assigned by doctrinebot
@doctrinebot doctrinebot closed this
@doctrinebot doctrinebot added the Bug label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.