DDC-418: Doctrine\ORM\Query should return ArrayCollection instead of raw arrays #521

Open
opened 2026-01-22 12:41:10 +01:00 by admin · 0 comments
Owner

Originally created by @doctrinebot on GitHub (Mar 12, 2010).

Jira issue originally created by user @guilhermeblanco:

The inclusion of Collection support in Doctrine leads to a REALLY nice support.
However, ->getResult() doesn't return an ArrayCollection instance.

This should be valid only for getResult, since it doesn't sound correct to return this instance in other situations (->getArrayResult(), ->getScalarResult(), ->getSingleResult(), ->getSingleScalarResult())

Cheers,

Originally created by @doctrinebot on GitHub (Mar 12, 2010). Jira issue originally created by user @guilhermeblanco: The inclusion of Collection support in Doctrine leads to a **REALLY** nice support. However, ->getResult() doesn't return an ArrayCollection instance. This should be valid only for getResult, since it doesn't sound correct to return this instance in other situations (->getArrayResult(), ->getScalarResult(), ->getSingleResult(), ->getSingleScalarResult()) Cheers,
admin added the Improvement label 2026-01-22 12:41:10 +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#521