Uploaded image for project: 'Doctrine 2 - ORM'
  1. Doctrine 2 - ORM
  2. DDC-2682

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: 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
        doctrinebot Doctrine Bot added a comment -

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

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

          People

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

            Dates

            • Created:
              Updated:
              Resolved: