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