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();
しかし、私は次のエラーを取得していますか?
http://oldforum.symfony-project.org/index.php/m/69063/ –