Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2190

findBy() support finding by a single DateTime but not by multiple DateTime

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None

      Description

      The following code works:

      $repository->findBy(array('date' => new \DateTime()))

      but the following code fails as it does not apply the conversion of the date type for each element:

      $repository->findBy(array('date' => array(new \DateTime(), new \DateTime('tomorrow')))
      1. DDC2190Test.php
        0.6 kB
        Benjamin Eberlei

        Activity

          People

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

            Dates

            • Created:
              Updated: