/** * * @param unknown $locale * @return \Sdz\BlogBundle\Entity\Ecole */ public function setLocale($locale) { // Set locale foreach ($this->getSousTaches() as $sousTache) { $sousTache->setLocale($locale); } return parent::setLocale($locale); }
/** * * @param unknown $locale * @return \Sdz\BlogBundle\Entity\Ecole */ public function setLocale($locale) { parent::setLocale($locale); if ($this->taches !== null) { foreach ($this->taches as $tache) { $tache->setLocale($locale); if ($tache->getSoustaches() !== null) { foreach ($tache->getSoustaches() as $sousTache) { $sousTache->setLocale($locale); } } } } return $this; }