fix auto-stop when starting timesheet with tags (#2067)

This commit is contained in:
Kevin Papst
2020-10-27 18:35:22 +01:00
committed by GitHub
parent 8c39b4197e
commit 61c0cbc887
3 changed files with 55 additions and 33 deletions

View File

@@ -120,6 +120,22 @@ class TimesheetRepository extends EntityRepository
}
}
public function begin()
{
$this->getEntityManager()->beginTransaction();
}
public function commit()
{
$this->getEntityManager()->flush();
$this->getEntityManager()->commit();
}
public function rollback()
{
$this->getEntityManager()->rollback();
}
/**
* @param Timesheet $timesheet
* @throws \Doctrine\ORM\ORMException