title: Symfony2 APYDataGridbundle ManyToMany
body: <p>I’m working with Symfony2 and <a href="https://github.com/Abhoryo/APYDataGridBundle" rel="nofollow">APYDataGridBundle</a>.
  I have a many to many relationship, between Film and Genre objects:</p>
  
  <pre><code>/**
  * Film
  *
  * @ORM\Table(name="Film")
  * @ORM\Entity(repositoryClass="Filmoteca\FilmoBundle\Repository\FilmRepository")
  * @GRID\Source(columns="id, genres.genre")
  */
  
  class Film
  {
  
  /**
   * @var \Filmoteca\FilmoBundle\Entity\Genre
   *
   * @ORM\ManyToMany(targetEntity="Genre", inversedBy="films")
   *          @ORM\JoinTable(name="genre_films")
   * 
   * @GRID\Column(field="genres.genre", title="Genre", filter="select", selectMulti="true)
   **/
  private $genres;
  </code></pre>
  
  <p>And in my Genres class:</p>
  
  <pre><code>/**
   * @ORM\ManyToMany(targetEntity="Film", mappedBy="genres")
   **/
  private $films;
  </code></pre>
  
  <p>It’s working fine, but, for each genre of each film, a different row is showed. I would like to get a column which shows all the genres.</p>
  
  <p>I get:
  (row1) 7/ Bande à part/ Drama
  (row2) 7/ Bande à part/ Commedy</p>
  
  <p>But I would like to see an array with all the genres:
  (row) 7/ Bande à part/ Drama, Comedy</p>
  
  <p>Any ideas? 
  Thank you!</p>