public function getArticleLink() { return link_to($this->getArticle()->getTitle(), 'article/edit?id='.$this->getArticleId()); }
No generator.yml colocar a entrada respectiva:
generator: class: sfPropelAdminGenerator param: model_class: Comment theme: default fields: id: { name: Id } article_link: { name: Article } author: { name: Author } date: { name: Published on } content: { name: Body } list: display: [id, article_link, date] ...
Retirado daqui:
http://vit.free.fr/symfony/0.6.3/generator.html
Nenhum comentário:
Postar um comentário