2011-04-18 45 views
0

我有一個schma.yml文件與各種表。對於一個單一的表中,原則:建立命令不建立一個formfilter類學說:構建 - 形式 - 模型不會生成特定的過濾器形式

該表的定義的schema.yml是

InactiveReason: 
    actAs: 
    Sortable: ~ 
    columns: 
    id: { type: integer(4), notnull: true, unique: true, primary: true, autoincrement: true } 
    name: { type: string(100), notnull: true } 

兩個模型和表單類產生,但是我不能讓它來生成formfilter類(InactiveReasonFormFilter和BaseInactiveReasonFormFilter)

我曾嘗試在schema.yml中的定義,這也沒有幫助。我在這裏使用某種保留的keywore嗎?

回答

3

你沒有指定爲構建任務生成過濾器類

doctrine:build --forms --model 

添加在--filters選項或--all類選項替換所有選項

doctrine:build --forms --model --filters 

doctrine:build --all-classes 
+0

乾杯,這是我無法完全使用build的第一個項目:全部加載 – jdog 2011-04-20 00:02:31