title: sonata sonata_type_collection display table
body: <p>I have two entities: "Event" and "EventImage". One event can have multiple images.</p>
  
  <p>This is the relationship defined on the Event table:</p>
  
  <pre><code>**
  * Event
  *
  * @ORM\Table()
  * @ORM\Entity(repositoryClass="AppBundle\Entity\EventRepository")
  */
  
  class Event
  {
  
      /**
       * @ORM\OneToMany(targetEntity="EventImage", mappedBy="event")
       */
      protected $eventImages;
  
  }
  </code></pre>
  
  <p>and this is the relationship defined on the EventImage table:</p>
  
  <pre><code>/**
   * EventImage
   *
   * @ORM\Table()
   * @ORM\Entity(repositoryClass="AppBundle\Entity\EventImageRepository")
   */
  class EventImage
  {
      /**
       * @ORM\ManyToOne(targetEntity="Event", inversedBy="eventImages")
       * @ORM\JoinColumn(name="event_id", referencedColumnName="id")
       */
      protected $event;
  }
  </code></pre>
  
  <p>and in my "configureFormFields" in EventAdmin</p>
  
  <pre><code>$formMapper
      -&gt;add('eventImages', 'sonata_type_collection',array(), array(
                          'edit' =&gt; 'inline',
                          'inline' =&gt; 'standard',
                          'sortable'  =&gt; 'listOrder'
                  ))
  </code></pre>
  
  <p>and in my "" in EventImageAdmin</p>
  
  <pre><code>$formMapper
      -&gt;add('id')
      -&gt;add('imagePath', 'text')
  -&gt;end()
  ;
  </code></pre>
  
  <p>Now I saw some example around where you get a nice formatted table, with each pulled record in a row, with a checkbox to delete the row and also the dragging option, and also the "add a new row" button to link a new element(or add a new one)</p>
  
  <p>But all i got is a cascade list of associated eventImage records, not formatted in a table, with no "add a new row" option.</p>
  
  <p>What am I doing wrong?</p>