/** * This unlocks a timesheet (and all its records) */ public function unlockAction() { $timesheet = $this->byId(); $this->projectService->unlockTimesheet($timesheet); $this->redirect('timesheet', 'edit', array('clientid' => $timesheet->clientid, 'projectid' => $timesheet->projectid, 'id' => $timesheet->id)); }