Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.1.7
    • Fix Version/s: None
    • Component/s: None
    • Security Level: All
    • Labels:
    • Environment:
      Symfony 2.0.x

      Description

      $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"

      1. ddc2149.patch
        0.8 kB
        Benjamin Eberlei

        Activity

        Hide
        Benjamin Eberlei added a comment -

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

        Show
        Benjamin Eberlei added a comment - Cannot reproduce issue with the attached test-case. Works perfectly with 2.1.7
        Hide
        jhvaras added a comment -

        Hi Marco,

        We cannot upgrade as we are developing under Symfony 2.0

        Thx

        Show
        jhvaras added a comment - Hi Marco, We cannot upgrade as we are developing under Symfony 2.0 Thx
        Hide
        Marco Pivetta added a comment -

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

        Show
        Marco Pivetta added a comment - Can you please try upgrading? 2.1.x won't get any more updates as far as I know.
        Hide
        jhvaras added a comment -

        Tested and issued in v2.1.7

        Show
        jhvaras added a comment - Tested and issued in v2.1.7

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            jhvaras
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: