我有以下 sql 错误:
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'a.`role`' in 'field list'
我的教义选择是
$query->select('a.role AS role');
当我查看 symfony 错误时,我看到该学说使“a.role”成为a
. role
.
这里完整的 SQL 语句 =
at Doctrine_Connection->execute('SELECT `a`.```role``` AS `a__0`, `a`.`role` AS `a__0` FROM `offer` `o` INNER JOIN `account` `a` *******)