2011-08-04 1 views
0

Symphony 1.4 및 다음 튜토리얼을 실행하고 있습니다 : http://www.symfony-project.org/jobeet/1_4/Doctrine/en/03.경로 "JobeetCategory-> columns-> name"에서 "notnull"이라는 스키마 요소가 유효하지 않습니다

내가 실행할 때 './symfony 교리를 : 구축 --model'내가 오류 얻을 :

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

사람이 도와 주실 래요 ...

이 계획은 다음과 같습니다

 
JobeetCategory: 
    actAs: { Timestampable: ~ } 
    columns: 
    name: { type: string(255), notnull: true, unique: true } 
+0

전체 스키마 파일을 제공하십시오. 그리고 항상 2 개의 공백을 사용하는 것을 유의하십시오. – scube

+0

안녕하세요 scube, 위의 전체 스키마 파일입니다. 다른 모든 스키마 설정을 삭제하여 오류를 줄였습니다. @scube – lucy

답변

0

제공된 코드가 저에게 효과적입니다. 그러나 시도해보십시오 :

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

위의 코드를 시도했지만 다음과 같은 결과가 나타납니다. ''JobeetCategory-> columns-> name "@scube – lucy

+0

경로의"notnull "스키마 요소가 유효하지 않습니다. 아무도 도와 줄 수 있습니까? – lucy

관련 문제