DDC-407: Column indexes from rows in getScalarResult() are 1-based #506

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

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

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user jakajancar:

        $query = $this->em->createQuery('SELECT MIN(e.id) min, MAX(e.id) mAx FROM Celtra\Models\ResourceEvent e');
        $ret = $query->getScalarResult();

Will return:

array (
  0 => 
  array (
    1 => NULL,
    2 => NULL,
  ),
)

Is it indended that the column indexes are 1-based?

Originally created by @doctrinebot on GitHub (Mar 11, 2010). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user jakajancar: ``` $query = $this->em->createQuery('SELECT MIN(e.id) min, MAX(e.id) mAx FROM Celtra\Models\ResourceEvent e'); $ret = $query->getScalarResult(); ``` Will return: ``` array ( 0 => array ( 1 => NULL, 2 => NULL, ), ) ``` Is it indended that the column indexes are 1-based?
admin added the Bug label 2026-01-22 12:40:46 +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#506