From 9a128e449ac6b5d06cfde73f2f00a3b5eee2fdc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20K=C5=99=C3=AD=C5=BE?= Date: Wed, 15 Oct 2014 19:38:50 +0200 Subject: [PATCH] DoctrineFormService: typo --- src/System/DoctrineFormService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }