Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 2.3
-
Fix Version/s: 2.3
-
Component/s: None
-
Security Level: All
-
Labels:None
Description
In 2.2.x it was possible to explicitly specify a type of a parameter in query. In code below, I used a Type::DATE to explicitly say that it should be converted to date type rather than datetime. In 2.3-RC1, it is completely ignored.
// $query instanceof AbstractQuery
$query->setParameter('day', $date, Type::DATE)
Pull request: https://github.com/doctrine/doctrine2/pull/416
Activity
Michael Moravec
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Description |
In 2.2.x it was possible to explicitly specify a type of a parameter in query. In code below, I used a Type::DATE to explicitly say that it should be converted to date type rather than datetime. In 2.3-RC1, it is completely ignored.
{code} // $query instanceof AbstractQuery $query->setParameter('day', $date, Type::DATE) {code} |
In 2.2.x it was possible to explicitly specify a type of a parameter in query. In code below, I used a Type::DATE to explicitly say that it should be converted to date type rather than datetime. In 2.3-RC1, it is completely ignored.
{code} // $query instanceof AbstractQuery $query->setParameter('day', $date, Type::DATE) {code} Pull request: https://github.com/doctrine/doctrine2/pull/416 |
Benjamin Eberlei
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Fix Version/s | 2.3 [ 10185 ] | |
| Resolution | Fixed [ 1 ] |