douwu7563 2011-02-12 23:39
浏览 40
已采纳

symfony警告:array_merge():参数#2不是/ home /中的数组

I am just getting started with symfony and am trying to build the database but I get the following error:

./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

I have the 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 for the help!

  • 写回答

1条回答 默认 最新

  • dsgdsf12312 2011-02-12 23:44
    关注

    If that's how your file actually looks, it's not valid YAML. It's an indentation based language, and you have no indentation under your model names.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 Odoo17操作下面代码的模块时出现没有'读取'来访问
  • ¥50 .net core 并发调用接口问题
  • ¥15 网上各种方法试过了,pip还是无法使用
  • ¥15 用verilog实现tanh函数和softplus函数
  • ¥15 Hadoop集群部署启动Hadoop时碰到问题
  • ¥15 求京东批量付款能替代天诚
  • ¥15 slaris 系统断电后,重新开机后一直自动重启
  • ¥15 QTableWidget重绘程序崩溃
  • ¥15 谁能帮我看看这拒稿理由啥意思啊阿啊
  • ¥15 关于vue2中methods使用call修改this指向的问题