Search code examples
phpsymfonysonata-admin

SonataAdmin in Symfony3 - There are no model managers registered


I want to use the command sonata:admin:generate for generating an admin from an entity, but the following error occurs every time:

[RuntimeException] There are no model managers registered.

Any ideas why this might be?


Solution

  • I will take a guess but did you install SonataDoctrineORMAdminBundle as described here?

    To install it, you can simply run

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