|
@@ -638,7 +638,7 @@ abstract class Admin implements AdminInterface, DomainObjectInterface
|
|
|
$this->configureDatagridFilters($mapper);
|
|
|
|
|
|
// ok, try to limit to add parent filter
|
|
|
- if ($this->getParentAssociationMapping()) {
|
|
|
+ if ($this->isChild() && $this->getParentAssociationMapping() && !$mapper->has($this->getParentAssociationMapping())) {
|
|
|
$mapper->add($this->getParentAssociationMapping(), null, array(
|
|
|
'field_type' => 'sonata_type_model_reference',
|
|
|
'field_options' => array(
|