I have entity class Page
with column type=integer
. When I do:
Sonata creates routes automatically based on your entity names. So if you have 2 admin classes, there is a conflict. You have to configure different route pattern.
Add this property to Main\ProgramBundle\Admin\GroupAdmin.php:
protected $baseRouteName = 'page_group';
protected $baseRoutePattern = 'page-group';