Details
-
Type:
Bug
-
Status:
Open
-
Priority:
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')))
Activity
Christophe Coevoet
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Description |
The following code works:
{code}$repository->findBy('date' => new \DateTime()){code} but the following code fails as it does not apply the conversion of the {{date}} type for each element: {code}$repository->findBy('date' => array(new \DateTime(), new \DateTime('tomorrow')){code} |
The following code works:
{code}$repository->findBy(array('date' => new \DateTime())){code} but the following code fails as it does not apply the conversion of the {{date}} type for each element: {code}$repository->findBy(array('date' => array(new \DateTime(), new \DateTime('tomorrow'))){code} |
Benjamin Eberlei
made changes -
| Attachment | DDC2190Test.php [ 11526 ] |