DDC-2257: [GH-555] Failing test case for iterable ObjectHydrator #2838

Closed
opened 2026-01-22 14:05:23 +01:00 by admin · 4 comments
Owner

Originally created by @doctrinebot on GitHub (Jan 25, 2013).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user @beberlei:

This issue is created automatically through a Github pull request on behalf of everzet:

Url: https://github.com/doctrine/doctrine2/pull/555

Message:

Here's the deal, whether you're using ObjectHydrator::iterate() on query with scalars, on each consequent iteration scalars go into advanced subarray. In terms of failing test case, we're getting:

- iteration #1
  array(1) {
    [0]=> array(2) {
      ["id"]=> string(1) "1"
      ["name"]=> string(6) "romanb"
    }
  }
- iteration #2
  array(1) {
    [1]=> array(2) {
      ["id"]=> string(1) "2"
      ["name"]=> string(5) "jwage"
    }
  }
- iteration #3
  array(1) {
    [2]=> array(2) {
      ["id"]=> string(1) "3"
      ["name"]=> string(7) "everzet"
    }
  }

Where in reality we expect:

- iteration #1
  array(1) {
    [0]=> array(2) {
      ["id"]=> string(1) "1"
      ["name"]=> string(6) "romanb"
    }
  }
- iteration #2
  array(1) {
    [0]=> array(2) {
      ["id"]=> string(1) "2"
      ["name"]=> string(5) "jwage"
    }
  }
- iteration #3
  array(1) {
    [0]=> array(2) {
      ["id"]=> string(1) "3"
      ["name"]=> string(7) "everzet"
    }
  }
Originally created by @doctrinebot on GitHub (Jan 25, 2013). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user @beberlei: This issue is created automatically through a Github pull request on behalf of everzet: Url: https://github.com/doctrine/doctrine2/pull/555 Message: Here's the deal, whether you're using `ObjectHydrator::iterate()` on query with scalars, on each consequent iteration scalars go into advanced subarray. In terms of failing test case, we're getting: ``` - iteration #1 array(1) { [0]=> array(2) { ["id"]=> string(1) "1" ["name"]=> string(6) "romanb" } } - iteration #2 array(1) { [1]=> array(2) { ["id"]=> string(1) "2" ["name"]=> string(5) "jwage" } } - iteration #3 array(1) { [2]=> array(2) { ["id"]=> string(1) "3" ["name"]=> string(7) "everzet" } } ``` Where in reality we expect: ``` - iteration #1 array(1) { [0]=> array(2) { ["id"]=> string(1) "1" ["name"]=> string(6) "romanb" } } - iteration #2 array(1) { [0]=> array(2) { ["id"]=> string(1) "2" ["name"]=> string(5) "jwage" } } - iteration #3 array(1) { [0]=> array(2) { ["id"]=> string(1) "3" ["name"]=> string(7) "everzet" } } ```
admin added the Bug label 2026-01-22 14:05:23 +01:00
admin closed this issue 2026-01-22 14:05:24 +01:00
Author
Owner

@doctrinebot commented on GitHub (Apr 14, 2013):

Comment created by @beberlei:

Documented behavior

@doctrinebot commented on GitHub (Apr 14, 2013): Comment created by @beberlei: Documented behavior
Author
Owner

@doctrinebot commented on GitHub (Apr 14, 2013):

Issue was closed with resolution "Invalid"

@doctrinebot commented on GitHub (Apr 14, 2013): Issue was closed with resolution "Invalid"
Author
Owner

@doctrinebot commented on GitHub (Apr 14, 2013):

Comment created by @doctrinebot:

A related Github Pull-Request [GH-555] was closed:
https://github.com/doctrine/doctrine2/pull/555

@doctrinebot commented on GitHub (Apr 14, 2013): Comment created by @doctrinebot: A related Github Pull-Request [GH-555] was closed: https://github.com/doctrine/doctrine2/pull/555
Author
Owner

@doctrinebot commented on GitHub (Apr 24, 2014):

Comment created by @doctrinebot:

A related Github Pull-Request [GH-555] was closed:
https://github.com/doctrine/dbal/pull/555

@doctrinebot commented on GitHub (Apr 24, 2014): Comment created by @doctrinebot: A related Github Pull-Request [GH-555] was closed: https://github.com/doctrine/dbal/pull/555
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#2838