public function mergeNewTranslations()
    {
        foreach ($this->getNewTranslations() as $newTranslation) {
            if (!$this->getTranslations()->contains($newTranslation) && !$newTranslation->isEmpty()) {
                $this->addTranslation($newTranslation);
                $this->getNewTranslations()->removeElement($newTranslation);
            }
        }
    }
public function mergeNewTranslations()
    {
        foreach ($this->getNewTranslations() as $newTranslation) {
            if (!$this->getTranslations()->contains($newTranslation) && !$newTranslation->isEmpty()) {
                $this->addTranslation($newTranslation);
                $this->getNewTranslations()->removeElement($newTranslation);
            }
        }
    }
public function mergeNewTranslations ( ) { foreach ( $ this -> getNewTranslations ( ) as $ newTranslation ) { if ( ! $ this -> getTranslations ( ) -> contains ( $ newTranslation ) && ! $ newTranslation -> isEmpty ( ) ) { $ this -> addTranslation ( $ newTranslation ) ; $ this -> getNewTranslations ( ) -> removeElement ( $ newTranslation ) ; } } }
Merges newly created translations into persisted translations.
Merges newly created translations into persisted translations .