diff --git a/src/System/DoctrineFormService.php b/src/System/DoctrineFormService.php index 24c03006..04c33b8e 100644 --- a/src/System/DoctrineFormService.php +++ b/src/System/DoctrineFormService.php @@ -90,7 +90,7 @@ protected function createFormFactory(IFormFactory $formFactory, BaseEntity $enti protected function getEntity($primaryKey) { return $primaryKey !== null - ? $entity = $this->getRepository()->find($primaryKey) + ? $this->getRepository()->find($primaryKey) : $this->createEntity(); }