开发者

Invalid schema element named "notnull" at path "JobeetCategory->columns->name"

开发者 https://www.devze.com 2023-03-25 20:06 出处:网络
I am running Symphony 1.4 and on the following tutorial: http://www.symfony-project.org/jobeet/1_4/Doctrine/en/03.

I am running Symphony 1.4 and on the following tutorial: http://www.symfony-project.org/jobeet/1_4/Doctrine/en/03.

However when I run './symfony doctrine:build --model' i get the error:

Invalid schema element named "notnull" at path "JobeetCategory->columns->name"

Can someone please help...

The scheme looks like this:

JobeetCategory:
  actAs: { Timestampable: ~ }
  columns:
    name: { type: string(255), notnull: true, unique开发者_高级运维: true }


Your provided code works for me. But try that:

JobeetCategory:
  actAs: { Timestampable: ~ }
  columns:
    name: { type: string(255), notnull: true }
  indexes:
    unique_fields:       { type: unique, fields: [name] }
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号