Closed sylzys closed 9 years ago
The same problem appears when I create an entity.
I got a "Company" entity, which has a OneToOne relationship with a "Contact" entity. When I create the contact, here's what appears in the form. The same appears when creating and when editing.
Cache has been cleared :/
You need to either overwrite the toString method from the admin class or set a __toString method in your entities.
So obvious now that you say it :'(
Thanks !
You need to overwrite __toString() in your entity
On Tue, Sep 8, 2015, 8:10 AM sylzys notifications@github.com wrote:
First, thanks for the great job !
I use the admin bundle, and followed the docs to create admin classes for my entities, they're now displayed in the dashboard and menu, and I can create / edit them.
I'm facing a slight problem though: when I create an entity, the flash message does not render
Item "FooBar" has been successfully created. But Item "CouponsBundle\Entity\Company:000000007851fdde000000010739fe91" has been successfully created.
Same goes with the breadcrumb, which display for instance
Dashboard / Company List / CouponsBundle\Entity\Company:000000007934e1080000000129391fb3
I really have no idea where to dig... Thanks
— Reply to this email directly or view it on GitHub https://github.com/sonata-project/SonataAdminBundle/issues/3228.
First, thanks for the great job !
I use the admin bundle, and followed the docs to create admin classes for my entities, they're now displayed in the dashboard and menu, and I can create / edit them.
I'm facing a slight problem though: when I create an entity, the flash message does not render
But
Same goes with the breadcrumb, which display for instance
I really have no idea where to dig... Thanks