Bazinga Hateoas: Embed Array Collection
<p>I have an entity in my Symfony2 project called Department which has a OneToMany relationship with an entity User. I am trying to embed an array collection of users via the Bazinga Hateoas bundle.</p>

<p>If I embed a single user everything works fine. In this example, I am embedding a single instance of an entity.</p>

<pre><code>  @Hateoas\Relation(
    "user",
    href = "expr('/api/staff/' ~ object.getUser().getId())",
    embedded = "expr(object.getUser())",
    exclusion = @Hateoas\Exclusion(excludeIf = "expr(object.getUser() === null)")
  )  //works
</code></pre>

<p>But if I try this with an array collection this does not work. </p>