Doctrine Common
  1. Doctrine Common
  2. DCOM-152

[GH-234] Criteria filtering doesn't work with DateTime instance

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

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

      Url: https://github.com/doctrine/common/pull/234

      Message:

      Filtering associations doesn't work with DateTime instance as a comparison value because filtering uses === operator. It works with SQL backed filtering, but not on PHP collection level.

      ```php
      $criteria = Criteria::create()
      >where(Criteria::expr()>eq("birthday", new \DateTime("1982-02-17")))
      ->orderBy(array("username" => "ASC"))
      ->setFirstResult(0)
      ->setMaxResults(20)
      ;
      ```

        Activity

        Hide
        Doctrine Bot added a comment -

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

        Show
        Doctrine Bot added a comment - A related Github Pull-Request [GH-234] was closed: https://github.com/doctrine/common/pull/234
        Hide
        Guilherme Blanco added a comment -

        As a resolution happened 3 months ago, this issue is now marked as won't fix.

        Commit reference: https://github.com/doctrine/collections/commit/5e2d9cfe6a3d8eb2906f805a27c27ba3e5f2140c

        Show
        Guilherme Blanco added a comment - As a resolution happened 3 months ago, this issue is now marked as won't fix. Commit reference: https://github.com/doctrine/collections/commit/5e2d9cfe6a3d8eb2906f805a27c27ba3e5f2140c

          People

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

            Dates

            • Created:
              Updated:
              Resolved: