title: FLOW3 action parameters and arrays of objects
body: <p><a href="http://flow3.typo3.org/" rel="nofollow noreferrer">FLOW3</a> provides a convenient way to pass entities by ID in the URL, and get them automatically instantiated in the controller action's parameters:</p>
  
  <pre><code>class PostController extends \TYPO3\FLOW3\MVC\Controller\ActionController {
      public function editAction(Post $post) {
          ...
      }
  }
  </code></pre>
  
  <p>But what about the use case where you have checkboxes, each representing a particular object? It would be handy to get them autoinstantiated as well:</p>
  
  <pre><code>&lt;input type="checkbox" name="tags[]" value="1" /&gt;
  &lt;input type="checkbox" name="tags[]" value="2" /&gt;
  ...
  </code></pre>
  
  <p>Is there a way to tell FLOW3 to auto-instantiate the <code>$tags</code> variable as an array of <code>Tag</code> objects? Something like:</p>
  
  <pre><code>public function setTagsAction(Post $post, /** @var Model\Tag */ array $tags) {
      $post-&gt;setTags($tags);
  }
  </code></pre>