Retrieving related data in the Symfony Admin Generator
Posted
by bjoern
on Stack Overflow
See other posts from Stack Overflow
or by bjoern
Published on 2010-02-08T19:23:07Z
Indexed on
2010/04/25
10:23 UTC
Read the original article
Hit count: 408
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?
© Stack Overflow or respective owner