{"issue":{"pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"state":"open","user":{"avatar_url":"https://secure.gravatar.com/avatar/c6f97d0ca59700760c86b9c153815c32?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"c6f97d0ca59700760c86b9c153815c32","url":"https://api.github.com/users/strubester","login":"strubester","id":685031},"milestone":null,"assignee":null,"labels":[],"updated_at":"2011-11-01T14:59:53Z","comments":9,"closed_at":null,"url":"https://api.github.com/repos/fabpot/Twig/issues/494","body":"The issue that I'm running up against is that my second nested array's properties are only accessible through\r\n\r\nentity.contact.7.id\r\n\r\n(when looping through result.entity)\r\n\r\nI don't want to HAVE to loop through a single item array if possible. Idea?\r\n\r\n```\r\nArray\r\n(\r\n    [query] => strube\r\n    [result] => Array\r\n        (\r\n            [entity] => Array\r\n                (\r\n                    [1] => Array\r\n                        (\r\n                            [id] => 1\r\n                            [label] => Daniel Strube\r\n                            [username] => strubester\r\n                            [password] => \r\n                            [is_company] => 0\r\n                            [contact_id] => 7\r\n                            [auth_hash] => \r\n                            [contact] => Array\r\n                                (\r\n                                    [7] => Array\r\n                                        (\r\n                                            [id] => 7\r\n                                            [label] => Contact Label\r\n                                            [phone] =>\r\n                                            [email] =>\r\n                                            [ownEntity] => Array\r\n                                                (\r\n                                                    [1] => \r\n                                                )\r\n\r\n                                        )\r\n\r\n                                )\r\n\r\n                        )\r\n\r\n                )\r\n\r\n            [event] => Array\r\n                (\r\n                )\r\n\r\n            [product] => Array\r\n                (\r\n                )\r\n\r\n        )\r\n\r\n)\r\n```","html_url":"https://github.com/fabpot/Twig/issues/494","number":494,"title":"Nested Array Issue","id":2104074,"created_at":"2011-11-01T01:34:01Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/7894bbdf1c05b18a1444ad8c76c9d583?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"7894bbdf1c05b18a1444ad8c76c9d583","url":"https://api.github.com/users/stof","login":"stof","id":439401},"updated_at":"2011-11-01T14:59:53Z","url":"https://api.github.com/repos/fabpot/Twig/issues/comments/2591265","body":"Well, if you pass the array you dumped as argument to the ``render`` method, you will get a ``result`` variable in the template, not an ``entity`` variable. So you are probably passing it differently","id":2591265,"created_at":"2011-11-01T14:59:53Z"}}