クエリを実行しようとしていますが、エラーが発生します:
不明なテーブル エイリアス
テーブルは次のようにセットアップされます。
Template_Spot hasOne Template
Template hasMany Template_Spot
Template hasMany Location
Location hasOne Template
次の DQL を実行しようとしています。
$locationid = 1;
$spots = Doctrine_Query::create()
->select('cts.*, ct.*, uc.*')
->from('Template_Spot cts')
->innerJoin('Template ct')
->innerJoin('Location uc')
->where('uc.locationid = ?', $locationid)->execute();
誰かが問題を見つけますか?