SonataDoctrineORM - Model extends
问题 I'm using Sonata with SonataAdmin & SonataOrm as told in several tutorials. I simply would like to remove some default method of DoctrineOrmBundle- ModelManager.php I tried to override the ModelManager by putting <?php namespace Project\AdminBundle\Model; use Sonata\DoctrineORMAdminBundle\Model\ModelManager as ModelManager; class ModelManager extends ModelManager { /** * {@inheritdoc} */ public function getSortParameters(FieldDescriptionInterface $fieldDescription, DatagridInterface $datagrid