[DDC-2257] [GH-555] Failing test case for iterable ObjectHydrator Created: 25/Jan/13  Updated: 14/Apr/13  Resolved: 14/Apr/13

Status: Resolved
Project: Doctrine 2 - ORM
Component/s: None
Affects Version/s: None
Fix Version/s: None
Security Level: All

Type: Bug Priority: Major
Reporter: Benjamin Eberlei Assignee: Benjamin Eberlei
Resolution: Invalid Votes: 0
Labels: None


 Description   

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)
    Unknown macro: { [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)
    Unknown macro: { [0]=> array(2) { ["id"]=> string(1) "2" ["name"]=> string(5) "jwage" } }
  • iteration #3
    array(1)
    Unknown macro: { [0]=> array(2) { ["id"]=> string(1) "3" ["name"]=> string(7) "everzet" } }

    ```



 Comments   
Comment by Benjamin Eberlei [ 14/Apr/13 ]

Documented behavior

Comment by Doctrine Bot [ 14/Apr/13 ]

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

Generated at Thu Apr 17 21:48:24 UTC 2014 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.