Browse Source

Merge pull request #1127 from WouterJ/fix_deprecation_call

Fixed deprecation call
Thomas 12 years ago
parent
commit
701ecbac99
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Datagrid/Datagrid.php

+ 1 - 1
Datagrid/Datagrid.php

@@ -100,7 +100,7 @@ class Datagrid implements DatagridInterface
         }
 
         $this->formBuilder->add('_sort_by', 'hidden');
-        $this->formBuilder->get('_sort_by')->appendClientTransformer(new CallbackTransformer(
+        $this->formBuilder->get('_sort_by')->addViewTransformer(new CallbackTransformer(
             function($value) { return $value; },
             function($value) { return $value instanceof FieldDescriptionInterface ? $value->getName() : $value; }
         ));