/**
  * Test getter/setter for translations property
  */
 public function testTranslations()
 {
     $this->assertCount(0, $this->type->getTranslations());
     // Change value and assert new
     $newTranslation = new GroupTypeTranslation();
     $this->assertEntity($this->type->addTranslation($newTranslation));
     $this->assertCount(1, $this->type->getTranslations());
     $this->assertInstanceOf('Pim\\Bundle\\CatalogBundle\\Entity\\GroupTypeTranslation', $this->type->getTranslations()->first());
     $this->type->addTranslation($newTranslation);
     $this->assertCount(1, $this->type->getTranslations());
     $this->assertEntity($this->type->removeTranslation($newTranslation));
     $this->assertCount(0, $this->type->getTranslations());
 }
 /**
  * {@inheritDoc}
  */
 public function addTranslation(\Pim\Bundle\TranslationBundle\Entity\AbstractTranslation $translation)
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'addTranslation', array($translation));
     return parent::addTranslation($translation);
 }