示例#1
0
 public static function toEntity(SalonDTO $salonDTO)
 {
     $salon = new Salon();
     $salon->setId($salonDTO->getId());
     $salon->setSalonNombre($salonDTO->getSalonNombre());
     return $salon;
 }
示例#2
0
 public function updateSalonNombre(Salon $entity, $salonNombre)
 {
     $entity->setSalonNombre($salonNombre);
     return $this->persistenceManager->update($entity);
 }