Sonataadminbundle: Multiple admin section for same entity

前端 未结 3 797
孤独总比滥情好
孤独总比滥情好 2021-02-01 18:42

I have entity class Page with column type=integer. When I do:

   

        
3条回答
  •  抹茶落季
    2021-02-01 19:33

    I don't have enough reputation to add a comment to the previous answer, but it is missing the following information:

    You also need to define a unique $baseRouteName value in addition to $baseRoutePattern in your admin classes:

    protected $baseRouteName = 'admin_vendor_bundlename_adminclassname';
    
    protected $baseRoutePattern = 'unique-route-pattern';
    

    You only need to do this to one class, but consider doing it in both to keep it clear what's going on.

提交回复
热议问题