Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2682

[GH-791] Implemented "contains" operator for Criteria expressions

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5
    • Component/s: None
    • Security Level: All
    • Labels:
      None

      Description

      This issue is created automatically through a Github pull request on behalf of mnapoli:

      Url: https://github.com/doctrine/doctrine2/pull/791

      Message:

      Criteria expressions support the contains operator, and it is implemented for the ArrayCollection. However, it wasn't implemented in the QueryExpressionVisitor, the ORM implementation.

      This is the implementation and the test.

      The only thing I'm wondering: is the `%` wildcard valid for all supported RDBMS for the `LIKE` operator? After a quick search, it seems like so, but you guys probably know for sure.

      FYI it seems that someone created an issue for this, but it was closed: DDC-2394(http://www.doctrine-project.org/jira/browse/DDC-2394)

        Activity

        Hide
        Doctrine Bot added a comment -

        A related Github Pull-Request [GH-791] was closed:
        https://github.com/doctrine/doctrine2/pull/791

        Show
        Doctrine Bot added a comment - A related Github Pull-Request [GH-791] was closed: https://github.com/doctrine/doctrine2/pull/791
        Show
        Marco Pivetta added a comment - Merged: https://github.com/doctrine/doctrine2/commit/be81b46d8ee7fcb01741ec9f64656602f3c4436a

          People

          • Assignee:
            Guilherme Blanco
            Reporter:
            Doctrine Bot
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: