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
    • Security Level: All
    • 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)
      ;
      ```

        Issue Links

          Activity

          Benjamin Eberlei created issue -
          George Cooksey made changes -
          Field Original Value New Value
          Status Open [ 1 ] Awaiting Feedback [ 10000 ]
          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
          Guilherme Blanco made changes -
          Assignee Benjamin Eberlei [ beberlei ] Guilherme Blanco [ guilhermeblanco ]
          Guilherme Blanco made changes -
          Status Awaiting Feedback [ 10000 ] In Progress [ 3 ]
          Guilherme Blanco made changes -
          Status In Progress [ 3 ] Awaiting Feedback [ 10000 ]
          Guilherme Blanco made changes -
          Status Awaiting Feedback [ 10000 ] In Progress [ 3 ]
          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
          Guilherme Blanco made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Resolution Won't Fix [ 2 ]
          Marco Pivetta made changes -
          Link This issue is duplicated by DCOM-265 [ DCOM-265 ]

          This list may be incomplete, as errors occurred whilst retrieving source from linked applications:

          • Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DCOM-152, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

            People

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

              Dates

              • Created:
                Updated:
                Resolved: