In abstract class BaseNewsForm extends BaseFormDoctrine
i) 植被:
user_id => new sfWidgetFormDoctrineChoice(array( model => $this->getRelatedModelName( User ), add_empty => true)),
When i have add new News then i have list choice with ID all Users. How can i make change this list for Lastname? In table Users i have
id | username | name | lastname
i 知道必须在《新闻》中 表格添加:
$this->setWidget( user_id , new sfWidgetFormDoctrineChoice(array( model => $this->getRelatedModelName( User ), add_empty => true));
但是,如何把这个ed子用来获得最后姓名,而不是身份识别?