Explorar o código

Fixed deprecated method usage in HelperController

Stepan Anchugov %!s(int64=11) %!d(string=hai) anos
pai
achega
52a6f10ec8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Controller/HelperController.php

+ 1 - 1
Controller/HelperController.php

@@ -252,7 +252,7 @@ class HelperController
             return new JsonResponse(array('status' => 'KO', 'message' => 'The field cannot be edit, editable option must be set to true'));
         }
 
-        $propertyAccessor = PropertyAccess::getPropertyAccessor();
+        $propertyAccessor = PropertyAccess::createPropertyAccessor();
         $propertyPath     = new PropertyPath($field);
 
         // If property path has more than 1 element, take the last object in order to validate it