Retrieving related data in the Symfony Admin Generator
- by bjoern
I have a problem with the Admin Generator. The Table of Pages have the column sf_guard_user_id. The rest of the table looks as this part of the generator.yml in the line display,
list:
title: Pages
display: [=title, sfGuardUser, views, state, privacy, created_at, updated_at]
sort: [created_at, desc]
fields:
sfGuardUser: { label: Author }
created_at: { label: Published, date_format: dd.MM.y }
updated_at: { label: Updated, date_format: dd.MM.y }
table_method: retrieveUserList
Now the sf_guard_user_id is been replaced and the username ist displayed. Don't get me wrong, that works fine. But how can I get other variables from the sfGuarsUser relation? When I only add salt or another variable to display I get this,
Unknown record property / related component "salt" on "simplePage"
But why?