public function upsertCronGetAction(int $id = null) { $cron = $id ? $this->cronsTable->get($id) : $this->cronsTable->newEntity(); echo $this->twig->render('cron/upsert.twig', ['cron' => $cron]); }