DCOM-152: [GH-234] Criteria filtering doesn't work with DateTime instance #453

Closed
doctrinebot opened this Issue Dec 17, 2012 · 4 comments

2 participants

@doctrinebot

Jira issue originally created by user @beberlei:

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

Url: #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.

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

Comment created by @doctrinebot:

A related Github Pull-Request [GH-234] was closed:
#234

@doctrinebot

Comment created by @guilhermeblanco:

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

Commit reference: doctrine/collections@5e2d9cf

@doctrinebot

Issue was closed with resolution "Won't Fix"

@doctrinebot doctrinebot added the Bug label Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment