Symfony1 名为“的架构元素无效”;notnull";在路径上“;JobeetCategory->;列->;名称“;
我正在运行Symphony 1.4和以下教程: 但是,当我运行“./symfony-doctrine:build--model”时,我得到了错误: 路径“JobeetCategory->columns->name”处名为“notnull”的架构元素无效 有人能帮忙吗 该方案如下所示: JobeetCategory: actAs: { Timestampable: ~ } columns: name: { type: string(255), notnull: true, unique: true } 工作类别: actAs:{timestable:~} 柱: 名称:{type:string(255),notnull:true,unique:true}Symfony1 名为“的架构元素无效”;notnull";在路径上“;JobeetCategory->;列->;名称“;,symfony1,model,doctrine,jobeet,Symfony1,Model,Doctrine,Jobeet,我正在运行Symphony 1.4和以下教程: 但是,当我运行“./symfony-doctrine:build--model”时,我得到了错误: 路径“JobeetCategory->columns->name”处名为“notnull”的架构元素无效 有人能帮忙吗 该方案如下所示: JobeetCategory: actAs: { Timestampable: ~ } columns: name: { type: string(255), notnull: true, uni
你提供的代码对我有用。但试一下:
JobeetCategory:
actAs: { Timestampable: ~ }
columns:
name: { type: string(255), notnull: true }
indexes:
unique_fields: { type: unique, fields: [name] }
请提供您的整个架构文件。请注意,始终使用2个空格(不要多,也不要少,注意其他)。嗨,scube,上面是整个模式文件。我删除了所有其他模式设置以缩小故障范围@scubeI尝试了上述代码,但得到了以下输出:
路径“JobeetCategory->columns->name”
@scube处名为“notnull”的架构元素无效