title: symfony 2 many-to-many relationship
body: <p>I'm trying to realize a many-to-many relationship between two tables.</p>
  
  <p>this is my configuration:</p>
  
  <pre><code>Mailer\EmpfaengerBundle\Entity\Empfaenger:
    type: entity
    table: empfaenger
    id:
      id:
        type: integer
        generator: { strategy: AUTO }
    fields:
      vorname:
        type: string
        length: 255
        nullable: true
      nachname:
        type: string
        length: 255
        nullable: true
      created_by:
        type: integer
      updated_by:
        type: integer
    manyToMany:
      verteiler:
        targetEntity: Verteiler
        mappedBy: empfaenger
  
  Mailer\EmpfaengerBundle\Entity\Verteiler:
    type: entity
    table: verteiler
    id:
      id:
        type: integer
        generator: { strategy: AUTO }
    fields:
      name:
        type: string
        length: 255
        nullable: true
      created_by:
        type: integer
      updated_by:
        type: integer
    manyToMany:
      empfaenger:
        targetEntity: Empfaenger
        inversedBy: verteiler
        joinTable:
          name: verteiler_sys
          joinColumns:
            verteiler_id:
              referencedColumnName: id
          inverseJoinColumns:
            empfaenger_id:
              referencedColumnName: id
  </code></pre>
  
  <p>Now when I try to edit an entry, it works in the "verteiler" table, but not in the empfaenger table.
  The form is shown in the "empfaenger" edit page and the entries are highlightet, but when i change ohne, it won't save the changes.</p>
  
  <p>I tried various different configurations according to the doctrine documentation but always get the same result :-(</p>
  
  <p>both entities have exactly the same structure:</p>
  
  <pre><code>/**
       * Add empfaenger
       *
       * @param \Mailer\EmpfaengerBundle\Entity\Empfaenger $empfaenger
       * @return Verteiler
       */
      public function addEmpfaenger(\Mailer\EmpfaengerBundle\Entity\Empfaenger $empfaenger)
      {
          $this-&gt;empfaenger[] = $empfaenger;
  
          return $this;
      }
  
      /**
       * Remove empfaenger
       *
       * @param \Mailer\EmpfaengerBundle\Entity\Empfaenger $empfaenger
       */
      public function removeEmpfaenger(\Mailer\EmpfaengerBundle\Entity\Empfaenger $empfaenger)
      {
          $this-&gt;empfaenger-&gt;removeElement($empfaenger);
      }
  
      /**
       * Get empfaenger
       *
       * @return \Doctrine\Common\Collections\Collection 
       */
      public function getEmpfaenger()
      {
          return $this-&gt;empfaenger;
      }
  
  and help would be appreciated.
  </code></pre>