0
我剛開始接觸Symfony和我試圖建立數據庫,但我得到以下錯誤的數組:symfony的警告:array_merge():參數#2是不是在/ home/
./symfony doctrine:build --model
Warning: array_merge(): Argument #2 is not an array in /home/nicky/symfony/symfony-1.4.8/lib/plugins/sfDoctrinePlugin/lib/task/sfDoctrineBaseTask.class.php on line 182
我在schema.yml中以下
# config/doctrine/schema.yml
JobeetCategory:
actAs: { Timestampable: ~ }
columns:
name: { type: string(255), notnull: true, unique: true }
JobeetJob:
actAs: { Timestampable: ~ }
columns:
category_id: { type: integer, notnull: true }
type: { type: string(255) }
company: { type: string(255), notnull: true }
logo: { type: string(255) }
url: { type: string(255) }
position: { type: string(255), notnull: true }
location: { type: string(255), notnull: true }
description: { type: string(4000), notnull: true }
how_to_apply: { type: string(4000), notnull: true }
token: { type: string(255), notnull: true, unique: true }
is_public: { type: boolean, notnull: true, default: 1 }
is_activated: { type: boolean, notnull: true, default: 0 }
email: { type: string(255), notnull: true }
expires_at: { type: timestamp, notnull: true }
感謝您的幫助!
無法解析文件「/home/nicky/symfony/projectdirectory/config/doctrine/schema.yml」:YAML文件不能在第3行包含製表符作爲縮進(\t actAs:{Timestampable:〜})。 – nicky 2011-02-12 23:48:09