title: Symfony2 translation form with a2lix_translations and Gedmo doctrine-extensions
body: <p>I work in Symfony 2.5</p>
  
  <ul>
  <li>gedmo/doctrine-extensions": "dev-master</li>
  <li>a2lix/translation-form-bundle": "2.*@dev</li>
  </ul>
  
  <p>I'm trying on adding a translation on my entity Collection with the values name and description.</p>
  
  <p>Here is my entity collection:</p>
  
  <pre><code>    /**
   * Collection
   *
   * @ORM\Table()
   * @ORM\Entity(repositoryClass="Angeli\AdminBundle\Entity\CollectionRepository")
   * @Gedmo\TranslationEntity(class="Angeli\AdminBundle\Entity\CollectionTranslation")
   */
  class Collection
  {
   * @var integer
   *
   * @ORM\Column(name="id", type="integer")
   * @ORM\Id
   * @ORM\GeneratedValue(strategy="AUTO")
   */
  private $id;
  
  /**
   * @var string
   *
   * @Gedmo\Translatable
   * @ORM\Column(name="name", type="string", length=255)
   */
  private $name;
  
  /**
   * @var string
   *
   * @Gedmo\Translatable
   * @ORM\Column(name="description", type="text")
   */
  private $description;
  
  /**
   * @ORM\OneToMany(targetEntity="CollectionTranslation", mappedBy="object", cascade={"persist", "remove"})
   */
  protected $translations;
  
  /**
   * Required for Translatable behaviour
   * @Gedmo\Locale
   */
  protected $locale;
  
  public function __construct()
  {
      $this-&gt;translations = new ArrayCollection();
  }
  
  /**
   * Get id
   *
   * @return integer 
   */
  public function getId()
  {
      return $this-&gt;id;
  }
  
  /**
   * Set name
   *
   * @param string $name
   * @return Collection
   */
  public function setName($name)
  {
      $this-&gt;name = $name;
  
      return $this;
  }
  
  /**
   * Get name
   *
   * @return string 
   */
  public function getName()
  {
      return $this-&gt;name;
  }
  
  /**
   * Set description
   *
   * @param string $description
   * @return Collection
   */
  public function setDescription($description)
  {
      $this-&gt;description = $description;
  
      return $this;
  }
  
  /**
   * Get description
   *
   * @return string
   */
  public function getDescription()
  {
      return $this-&gt;description;
  }
  
  public function getTranslations()
  {
      return $this-&gt;translations;
  }
  
  public function addTranslation(CollectionTranslation $t)
  {
      $this-&gt;translations-&gt;add($t);
      $t-&gt;setObject($this);
  }
  
  public function removeTranslation(CollectionTranslation $t)
  {
      $this-&gt;translations-&gt;removeElement($t);
  }
  
  public function setTranslations($translations)
  {
      $this-&gt;translations = $translations;
  }
  
  public function __toString()
  {
      return $this-&gt;getName();
  }
  }
  </code></pre>
  
  <p>Here is my CollectionTranslation Class:    </p>
  
  <pre><code>/**
   * @ORM\Entity
   * @ORM\Table(name="collection_translations",
   *     uniqueConstraints={@ORM\UniqueConstraint(name="lookup_unique_idx", columns={
   *         "locale", "object_id", "field"
   *     })}
   * )
   */
  class CollectionTranslation extends AbstractPersonalTranslation
  {
      /**
       * Convinient constructor
       *
       * @param string $locale
       * @param string $field
       * @param string $content
       */
      public function __construct($locale = null, $field = null, $content = null)
      {
          $this-&gt;setLocale($locale);
          $this-&gt;setField($field);
          $this-&gt;setContent($content);
      }
  
      /**
       * @ORM\ManyToOne(targetEntity="Collection", inversedBy="translations")
       * @ORM\JoinColumn(name="object_id", referencedColumnName="id", onDelete="CASCADE")
       */
      protected $object;
  }
  </code></pre>
  
  <p>Now I'm trying on building a form:</p>
  
  <pre><code>class CollectionType extends AbstractType{
  
  public function buildForm(FormBuilderInterface $builder, array $options)
  {
      //$builder-&gt;add('name','text', array('required'  =&gt; true, 'label'=&gt;'Name'));
      //$builder-&gt;add('description','textarea', array('required'  =&gt; true, 'label'=&gt;'Description'));
      $builder-&gt;add('translations', 'a2lix_translations');
  
  
  }
  
  public function setDefaultOptions(OptionsResolverInterface $resolver)
  {
      $resolver-&gt;setDefaults(array(
          'data_class' =&gt; 'Angeli\AdminBundle\Entity\Collection',
      ));
  }
  
  public function getName()
  {
      return 'Collection';
  }
  
  } 
  </code></pre>
  
  <p>But my form exist of 3 language tabs
  and the input fields</p>
  
  <ul>
  <li>Field</li>
  <li>Content</li>
  </ul>
  
  <p>If I add</p>
  
  <ul>
  <li>field = name</li>
  <li>content = some text</li>
  </ul>
  
  <p>I only translated the value "name"</p>
  
  <p>I want a form with my language tabs and "name" and "description" as input fields in the translation form.</p>
  
  <p>Somebody sees what I'm doing wrong?</p>