コード例 #1
0
ファイル: DepartmentMapper.php プロジェクト: blab2015/seh
 /**
  * @param ImportedDepartment $source
  * @param Department $destination
  * @return mixed
  */
 public function map($source, $destination)
 {
     $destination->setReservitId($source->getReservitId());
     $translations = array('fr' => $source->getFr(), 'en' => $source->getEn(), 'de' => $source->getDe(), 'es' => $source->getEs(), 'it' => $source->getIt(), 'nl' => $source->getNl());
     $this->translateProperty($destination, 'name', $translations);
     return $destination;
 }