@@ -101,11 +101,13 @@ class DatagridMapper
/**
* @param string $key
- * @return void
+ * @return \Sonata\AdminBundle\Datagrid\DatagridMapper
*/
public function remove($key)
{
$this->admin->removeFilterFieldDescription($key);
$this->datagrid->remove($key);
+
+ return $this;
}
@@ -95,7 +95,7 @@ class ListMapper
+ * @return \Sonata\AdminBundle\Datagrid\ListMapper
@@ -133,12 +133,14 @@ class FormMapper
+ * @return \Sonata\AdminBundle\Form\FormMapper
$this->admin->removeFormFieldDescription($key);
$this->formBuilder->remove($key);
@@ -103,12 +103,14 @@ class ShowMapper
+ * @return \Sonata\AdminBundle\Show\ShowMapper
$this->admin->removeShowFieldDescription($key);
$this->list->remove($key);