在symfony1.4中生成模块时出错
当我试图使用命令php-symfony-doctrine:generate-module-with-show-non-verbose-templates-backend-comment-TicketComments创建一个模块时,我遇到了如下错误 TicketComments模型没有票证关系 [?php使用样式表作为表单$form?] [?php使用Java脚本作为表单$form?] 这是我的schema.yml文件在symfony1.4中生成模块时出错,symfony1,symfony-1.4,Symfony1,Symfony 1.4,当我试图使用命令php-symfony-doctrine:generate-module-with-show-non-verbose-templates-backend-comment-TicketComments创建一个模块时,我遇到了如下错误 TicketComments模型没有票证关系 [?php使用样式表作为表单$form?] [?php使用Java脚本作为表单$form?] 这是我的schema.yml文件 任何人请帮助我。谢谢…您是否尝试过在架构中重命名票证类? 现在是票证,小写。尝
任何人请帮助我。谢谢…您是否尝试过在架构中重命名票证类? 现在是票证,小写。尝试使用Ticket,然后使用以下命令重建类: symfony原则:构建-所有类
然后它可能会创建缺少的关系您是否尝试在架构中重命名票证类? 现在是票证,小写。尝试使用Ticket,然后使用以下命令重建类: symfony原则:构建-所有类
然后它可能会创建缺失的关系哪个版本的symfony/doctor?我用你的模式尝试了一个新项目,一切都很顺利。@j0k我使用的是symfony 1.4和doctrine 1.2。symfony/doctrine的哪个版本?我用你的模式尝试了一个新项目,一切都很顺利。@j0k我使用的是symfony 1.4和doctrine 1.2。
ticket:
connection: doctrine
tableName: ticket
columns:
id:
type: integer(8)
fixed: false
unsigned: false
primary: true
autoincrement: true
client_id:
type: integer(8)
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
name:
type: string(200)
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
type:
type: string(20)
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
content:
type: string()
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
status:
type: string(10)
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
assigned_user_id:
type: integer(8)
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
estimated_time:
type: string(20)
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
working_status:
type: string(20)
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
working_status_comment:
type: string()
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
attachments:
type: string(50)
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
posttime:
type: string(150)
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
TicketAttachments:
connection: doctrine
tableName: ticket_attachments
columns:
id:
type: integer(8)
fixed: false
unsigned: false
primary: true
autoincrement: true
ticket_id:
type: integer(8)
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
name:
type: string(200)
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
relations:
ticket:
local: ticket_id
foreign: id
type: one
TicketComments:
connection: doctrine
tableName: ticket_comments
columns:
id:
type: integer(8)
fixed: false
unsigned: false
primary: true
autoincrement: true
ticket_id:
type: integer(8)
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
comment:
type: string()
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
file:
type: string(100)
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
post_date:
type: string(100)
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
relations:
ticket:
local: ticket_id
foreign: id
type: one