【发布时间】:2010-03-18 07:41:54
【问题描述】:
我有两张表 userdetails 和 blog question 架构是
UserDetails:
connection: doctrine
tableName: user_details
columns:
id:
type: integer(8)
fixed: false
name:
type: string(255)
fixed: false
BlogQuestion:
connection: doctrine
tableName: blog_question
columns:
question_id:
type: integer(8)
fixed: false
unsigned: false
primary: true
autoincrement: true
blog_id:
type: integer(8)
fixed: false
user_id:
type: integer(8)
fixed: false
question_title:
type: string(255)
我正在使用一个连接查询从这两个表中检索所有问题和用户详细信息我的连接查询是
$q = Doctrine_Query::create()
->select('*')
->from('BlogQuestion u')
->leftJoin('u.UserDetails p');
$q->execute();
但它显示此错误未知关系别名 UserDetails
请大家帮帮我
提前致谢
【问题讨论】: