title: how iterate ArrayCollection in symfony2 Controller
body: <p>I want to iterate <code>ArrayCollection</code> instance in Symfony2 Controller, What is the easiest way?</p>
  
  <p>edit:</p>
  
  <p>I thought it would work like normal array in php but I got error on this code:</p>
  
  <pre><code>foreach ($arrayCollectionInc as $Inc) {
  
  }
  </code></pre>