public function configureDatagridFilters(DatagridMapper $filter) { if (!$this->isChild()) { $filter->add('collection'); } }