/** * This locks a timesheet (and all its records) off so that those * records cannot be used in other timesheets. */ public function lockAction() { $timesheet = $this->byId(); $this->projectService->lockTimesheet($timesheet); $this->redirect('timesheet', 'edit', array('clientid' => $timesheet->clientid, 'projectid' => $timesheet->projectid, 'id' => $timesheet->id)); }