Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Admin/AbstractMenuNodeAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,11 @@ protected function configureFormFields(FormMapper $formMapper)
protected function configureShowFields(ShowMapper $showMapper)
{
$showMapper
->add('id', 'text')
->add('name', 'text')
->add('label', 'text')
->add('uri', 'text')
->add('content', 'text')
->add('id')
->add('name')
->add('label')
->add('uri')
->add('content', null, array('associated_property' => 'title'))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the content of the menu is a reference, not "text". this was the reason the problem was only detected in twig. when letting sonata figure out what field this is, it properly reports that we either need a __toString method or specify the associated_property.

;
}

Expand Down