1
제목 표/모델이 있고 "표제"모듈도 있습니다.기본 키가없는 모델의 모듈을 생성 할 수 없습니다.
Heading:
connection: doctrine
tableName: heading
columns:
id:
type: integer(8)
fixed: false
unsigned: false
primary: true
autoincrement: true
referenced_table_name:
type: string(255)
fixed: false
unsigned: false
primary: false
notnull: true
autoincrement: false
column_name:
type: string(255)
fixed: false
unsigned: false
primary: false
notnull: true
autoincrement: false
label:
type: string(255)
fixed: false
unsigned: false
primary: false
notnull: true
autoincrement: false
position:
type: integer(4)
fixed: false
unsigned: true
primary: false
notnull: true
autoincrement: false
import_profile_id:
type: integer(8)
fixed: false
unsigned: false
primary: false
notnull: true
autoincrement: false
note:
type: string()
fixed: false
unsigned: false
primary: false
notnull: true
autoincrement: false
created_at:
type: timestamp(25)
fixed: false
unsigned: false
primary: false
default: '0000-00-00 00:00:00'
notnull: true
autoincrement: false
updated_at:
type: timestamp(25)
fixed: false
unsigned: false
primary: false
default: '0000-00-00 00:00:00'
notnull: true
autoincrement: false
relations:
ImportProfile:
local: import_profile_id
foreign: id
type: one
TotalFromFile:
local: id
foreign: heading_id
type: many
: 제목 내 schema.yml 파일은 다음과 같습니다 때문에
Cannot generate a module for a model without a primary key (Heading)
이 나에게 이상한 : 나는 과거에 잘 일했다 제목 모듈에 갈 때, 지금 나에게 오류를 제공합니다
참고 기본 키 :
columns:
id:
type: integer(8)
fixed: false
unsigned: false
primary: true
autoincrement: true
가 나는 this other problem I'm having 함께 할 수있는 뭔가가 생각한다. 어떤 아이디어?
다른 스레드에서 계속 ... "symfony doctrine : clean-model-files"를 실행하여 사용하지 않는 모델을 제거 했습니까? 그것은 앞으로 나아갈 것입니까? – Tom