title: Twig iterate over object properties
body: <p>I read in the Twig documentation that it is possible to iterate over an associative array in the following manner:  </p>
  
  <pre><code>{% for key, value in array %}  
   {{key}}  
   {{value}}  
  {% endfor %}  
  </code></pre>
  
  <p>I was wondering whether this is possible for objects of type stdClass as well. </p>
  
  <p>I would have expected Twig to iterate over the property values of the object taking the property names as keys. Instead, the instruction block contained in the for loop is not executed at all.</p>