title: symfony sonata admin roles on embedded onetomany entities
body: <p>I have <em>Symfony 2.3 + Sonata Admin + Sonata User Bundle</em>.</p>
  
  <p>I have created an entity <code>Student</code>, and another entity <code>Contact</code>. An <code>Student</code> have one-to-many relationship with <code>Contact</code>. I have added <code>Contact</code> to <code>Student</code> with <code>sonata_type_collection</code> in my <code>StudentAdmin</code> class. I also have created a group of users <code>Operator</code> and assigned all permissions to <code>Student</code>, but only <code>list</code> and <code>view</code> to <code>Contact</code>.</p>
  
  <p>My problem is that any user of <code>Operator</code> can't add or delete <code>Contact</code> (from Student edit page), but they can edit (and values are saved). </p>
  
  <p>Any suggestions or examples?</p>
  
  <p>Some code:</p>
  
  <p>Roles assigned:</p>
  
  <pre><code>ROLE_SONATA_ADMIN_STUDENT_EDIT
  ROLE_SONATA_ADMIN_STUDENT_LIST
  ROLE_SONATA_ADMIN_STUDENT_CREATE
  ROLE_SONATA_ADMIN_STUDENT_VIEW
  ROLE_SONATA_ADMIN_STUDENT_DELETE 
  
  ROLE_SONATA_ADMIN_CONTACT_LIST
  ROLE_SONATA_ADMIN_CONTACT_VIEW 
  
  ROLE_ADMIN: ROLE_USER, ROLE_SONATA_ADMIN 
  
  
       /**
       * @ORM\OneToMany(targetEntity="MyBundle\Entity\Contact",
                        mappedBy="student",
                        cascade={"persist", "remove"})
       **/
      private $contact;
  
  
  -&gt;add('contact', 'sonata_type_collection',
                      array(
                              'label' =&gt; 'Contact',
                              'by_reference' =&gt; false,
                      ),
                      array(
                              'edit' =&gt; 'inline',
                              'inline' =&gt; 'table',
                      ))
  </code></pre>
  
  <p>Thanks!</p>