public function updateMonitorTipo(Monitor $entity, $monitorTipo) { $entity->setMonitorTipo($monitorTipo); return $this->persistenceManager->update($entity); }
public static function toEntity(MonitorDTO $monitorDTO) { $monitor = new Monitor(); $monitor->setId($monitorDTO->getId()); $monitor->setMonitorTipo($monitorDTO->getMonitorTipo()); $monitor->setMonitorHorario($monitorDTO->getMonitorHorario()); $monitor->setMonitorEstudiante($monitorDTO->getMonitorEstudiante()); return $monitor; }