我正在做Symfony中的博客引擎。這裏是我的架構的一部分:管理生成器:爲什麼我無法顯示文章的狀態,而不是state_id?
Content:
connection: doctrine
tableName: ec_content
columns:
id:
type: integer(4)
fixed: false
unsigned: true
primary: true
autoincrement: true
(...)
relations:
Author:
local: author_id
foreign: id
type: one
State:
local: state_id
foreign: id
type: one
Type:
local: type_id
foreign: id
type: one
(...)
在管理頁面,我想要顯示的文章的類型,但symfony中只顯示TYPE_ID,這是爲什麼?
編輯:這裏是我的generator.yml:我還沒有修改它。
generator:
class: sfDoctrineGenerator
param:
model_class: Content
theme: admin
non_verbose_templates: true
with_show: false
singular: ~
plural: ~
route_prefix: content_Brouillons
with_doctrine_route: true
actions_base_class: sfActions
config:
actions: ~
fields: ~
list:
title: Brouillons
display: [Type, State, title, link]
filter: ~
form: ~
edit: ~
new: ~
你可以從你的管理生成器模塊發佈你的generator.yml嗎? – richsage 2010-10-12 07:57:38