Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1260

Enable nesting of OR and AND statements in DQL queries

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.2
    • Component/s: DQL
    • Security Level: All
    • Labels:
      None

      Description

      Currently it is not allowed to nest AND and OR conditions in themselves. However, this comes in handy if you try to do a dynamic query rewriting, where you want to add some more conditions without knowing the original query before.

      The fix is trivial, just allow to add AND in AND. The same needs to be done for OR. Patch will follow in a second...

        Issue Links

          Activity

            People

            • Assignee:
              Guilherme Blanco
              Reporter:
              Andreas Förthner
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: