浏览代码

Fixed deprecated method usage in HelperController

Stepan Anchugov 11 年之前
父节点
当前提交
52a6f10ec8
共有 1 个文件被更改,包括 1 次插入1 次删除
  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