Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-233

Impossible to pass parameters through AbstractQuery::execute method

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0-ALPHA4
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None
    • Environment:
      mysql, php 5.3.1

      Description

      $query = $this->_em->createQuery("select u from Doctrine\Tests\Models\CMS\CmsUser u where u.username = ?1");
      $query->execute(array(1 => 42)); // throws execption 'invalid parameter position 0'

        Activity

        Hide
        Benjamin Eberlei added a comment -

        Fixed in trunk.

        Show
        Benjamin Eberlei added a comment - Fixed in trunk.

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Valery Dubrava
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: