From 62ad928a66a0234a79e6999c1ce006b0d8d60b1e Mon Sep 17 00:00:00 2001 From: nobohan Date: Fri, 13 Apr 2018 16:49:30 +0200 Subject: [PATCH 1/2] fix error due to removing of deprecated getName method --- Controller/PersonController.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Controller/PersonController.php b/Controller/PersonController.php index 9513a82b5..ac79c3add 100644 --- a/Controller/PersonController.php +++ b/Controller/PersonController.php @@ -225,7 +225,8 @@ class PersonController extends Controller } $form = $this->createForm( - CreationPersonType::NAME, + //CreationPersonType::NAME, + CreationPersonType::class, new Person(), array( 'action' => $this->generateUrl('chill_person_create'), @@ -324,7 +325,7 @@ class PersonController extends Controller return $r; } - $form = $this->createForm(CreationPersonType::NAME, null, array( + $form = $this->createForm(CreationPersonType::class, null, array( 'form_status' => CreationPersonType::FORM_REVIEWED )); From 1608c74f347664e2e5b48ec8382d4f73515a7caa Mon Sep 17 00:00:00 2001 From: nobohan Date: Fri, 13 Apr 2018 17:03:33 +0200 Subject: [PATCH 2/2] fix deprecations: methods -> constraint --- Resources/config/validation.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/config/validation.yml b/Resources/config/validation.yml index 80011e783..4a1625965 100644 --- a/Resources/config/validation.yml +++ b/Resources/config/validation.yml @@ -53,4 +53,4 @@ Chill\PersonBundle\Entity\AccompanyingPeriod: groups: [closed] constraints: - Callback: - methods: [isDateConsistent] + callback: isDateConsistent