title: Symfony2 and the MVC concept of view model
body: <p>I think that Symfony2 is missing the concept of <strong>ViewModel</strong> (like ASP.NET MVC Framework), that is the model associated to a view. Symfony2 (as documentation) usually assign an <strong>array</strong> to a view.</p>
  
  <p>A view model could be a PHP class but it's something different from the form model and sometimes it's the same as a domain entity. It' sometimes useful when dealing with a great amount of information to be displayed.</p>
  
  <p>Anyway, is there any convention about where view models should go in Symfony2? Any specific folder? By now i have:</p>
  
  <pre><code>Symfony2/src/MyCompany/MyBundle/Form/Model
  </code></pre>
  
  <p>which holds models associated to forms. And:</p>
  
  <pre><code>Symfony2/src/MyCompany/MyBundle/Entity
  </code></pre>
  
  <p>for domain entities (bounded to database tables).</p>
  
  <p>Suggestions are much appreciated. What about <code>Symfony2/src/MyCompany/MyBundle/Model</code>?</p>