public static function toEntity(SoftwareDTO $softwareDTO) { $software = new Software(); $software->setId($softwareDTO->getId()); $software->setSoftwareNumeroSerie($softwareDTO->getSoftwareNumeroSerie()); $software->setSoftwareNombre($softwareDTO->getSoftwareNombre()); $software->setSoftwareVersion($softwareDTO->getSoftwareVersion()); $software->setSoftwareFechaCaducidad($softwareDTO->getSoftwareFechaCaducidad()); $software->setSoftwareFechaAquisicion($softwareDTO->getSoftwareFechaAquisicion()); $software->setSoftwareEquiposPermitidos($softwareDTO->getSoftwareEquiposPermitidos()); $software->setSoftwareComentarios($softwareDTO->getSoftwareComentarios()); return $software; }
public function updateSoftwareVersion(Software $entity, $softwareVersion) { $entity->setSoftwareVersion($softwareVersion); return $this->persistenceManager->update($entity); }