I have an array like this:
array['a'] = {x => 1, y => 2...}
array['b'] = {x => 5, y => 7...}
I need to iterate over the array, but in each case I need to enter only in the 'a' or 'b' which I choose.
{% for i in main %}
{% set id = i.getId %}
{% for j in array.id %}
//do something like j.propertyA ...
{% endfor %}
{% endfor %}
The fail is always get the error: "The key 'id' for array with keys 'a', 'b'... does not exist"
If I force writting:
{% for j in array.a %}
The program works fine always with array.a but I need to works with all automatically.
Any idea? Thanks :)