Skip to content

Commit

Permalink
Merge pull request sonata-project#1127 from WouterJ/fix_deprecation_call
Browse files Browse the repository at this point in the history
Fixed deprecation call
  • Loading branch information
rande committed Jan 28, 2013
2 parents 5316b95 + fa9d073 commit 701ecba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Datagrid/Datagrid.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public function buildPager()
}

$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; }
));
Expand Down

0 comments on commit 701ecba

Please sign in to comment.