Doctrine Common
  1. Doctrine Common
  2. DCOM-152

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

    Details

    • Type: Bug Bug
    • Status: Awaiting Feedback
    • Priority: Major Major
    • Resolution: Unresolved
    • 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

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Benjamin Eberlei
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: