DDC-1961: BC Break: Explicit parameter type definitions are discarded when using AbstractQuery::setParameter #2476

Open
opened 2026-01-22 13:54:45 +01:00 by admin · 0 comments
Owner

Originally created by @doctrinebot on GitHub (Jul 31, 2012).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user majkl578:

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

Originally created by @doctrinebot on GitHub (Jul 31, 2012). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user majkl578: 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
admin added the Bug label 2026-01-22 13:54:45 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#2476