Search code examples
symfonysymfony-sonatasonata-admin

SonataAdminBundle - how to customize admin navbar


I have installed symfony 2.2 and SonataAdminBundle .The NavBar for products is looking like this :

Dashboard / Product List /{companyName}\{bundleName}\Entity\Product:0000000012fbfd4c00000000c6c10493

And I want it to look like this:

Dashboard / Product List /{Productname}

Solution

  • OK I have solution. Only what I needed to do was creating __toString function in entity