added reverted attribute to DiffTaskResult

This commit is contained in:
Jonathan Treffler 2024-01-24 20:22:02 +01:00 committed by root
parent 4870225d66
commit 5b6470a53b
3 changed files with 14 additions and 1 deletions

View file

@ -33,4 +33,10 @@ class DiffTaskResultMapper extends QBMapper {
return $this->findEntities($qb);
}
public function markReverted(int $id) {
$taskResult = $this->find($id);
$taskResult->setReverted(True);
return $this->update($taskResult);
}
}