Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1961

BC Break: Explicit parameter type definitions are discarded when using AbstractQuery::setParameter

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Blocker 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

          People

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

            Dates

            • Created:
              Updated:
              Resolved: