2012-01-07 19 views
0

私はプロジェクトを終了しています。私はSQLクエリで2つのテーブルを結合したい。Symfony:テーブルを結合するには?

"PageAnchor" with an alias of "pa" in your query does not reference the parent component it is related to., referer: example.com/abc/abc

任意のアイデア:

$this->chapterPages = Doctrine_Query::create() 
        ->from('Page') 
        ->leftJoin('PageAnchor pa ON pa.page_id = Page.sortorder') 
        ->where('Page.chapter_id = ?', $this->chapterId) 
        ->execute(); 

$this->chapterPages = $this->chapterPages->toArray(); 

しかし、私は次のエラーを取得していますか?

+0

http://oldforum.symfony-project.org/index.php/m/69063/ –

答えて

関連する問題