[symfony-users] 1:1 relation, is there any way to show the colums of the daughter model just writing in the generator?

2011-03-11 Thread Javier Garcia
Hi, for example I have created with symfony a module based on sfGuardUser. Now, in the list of elements of that module I want to show the sfGuardUserProfile columns (name, surname..). I know i can create a query, but is there any way just writing in the generator? sf 1.4/propel 1.6 Javi --

Re: [symfony-users] 1:1 relation, is there any way to show the colums of the daughter model just writing in the generator?

2011-03-11 Thread Francesco Levorato
If I understand correctly, you may simply add a field rendered as a partial (using underscore) and inside it use ?php echo $sf_guard_user-getProfile()-getName() Keep in mind that if user profiles haven't been JOINed in the listing query, you will execute an extra query each time you call