1. Installation

SonataDoctrineORMAdminBundle is part of a set of bundles aimed at abstracting storage connectivity for SonataAdminBundle. As such, SonataDoctrineORMAdminBundle depends on SonataAdminBundle and will not work without it.


These installation instructions are meant to be used only as part of SonataAdminBundle’s installation process, which is documented here.

1.1. Download the bundle

composer require sonata-project/doctrine-orm-admin-bundle

1.2. Enable the bundle

Next, be sure to enable the bundles in your bundles.php file if they are not already enabled:

// config/bundles.php

return [
    // ...
    Sonata\DoctrineORMAdminBundle\SonataDoctrineORMAdminBundle::class => ['all' => true],


Don’t forget that, as part of SonataAdminBundle’s installation instructions, you need to enable additional bundles on bundles.php.