[PR #11292] Allow array again in QueryBuilder::setParameters() #12917

Open
opened 2026-01-22 16:15:35 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/11292

State: closed
Merged: No


Fixes BC-break from #9490.

This would otherwise be an undocumented BC-break in ORM 3.0.

This works in 2.x:

        $qb = $this->entityManager->createQueryBuilder();
        $qb->setParameters([
            'username' => 'jwage',
            'username2' => 'jonwage',
        ]);

But it doesn't work any longer in 3.0.

**Original Pull Request:** https://github.com/doctrine/orm/pull/11292 **State:** closed **Merged:** No --- Fixes BC-break from #9490. This would otherwise be an undocumented BC-break in ORM 3.0. This works in 2.x: ``` $qb = $this->entityManager->createQueryBuilder(); $qb->setParameters([ 'username' => 'jwage', 'username2' => 'jonwage', ]); ``` But it doesn't work any longer in 3.0.
admin added the pull-request label 2026-01-22 16:15:35 +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#12917