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

          People

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

            Dates

            • Created:
              Updated:
              Resolved: