php - symfony Warning: array_merge(): Argument #2 is not an array in /home/ -
i getting started symfony , trying build database following error:
./symfony doctrine:build --model
warning: array_merge(): argument #2 not array in /home/nicky/symfony/symfony-1.4.8/lib/plugins/sfdoctrineplugin/lib/task/sfdoctrinebasetask.class.php on line 182
i have following in 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 }
thanks help!
if that's how file looks, it's not valid yaml. it's indentation based language, , have no indentation under model names.
Comments
Post a Comment