0
Я работаю над выходом проекта. Я хочу присоединиться к двум таблицам в SQL-запросе.Symfony: Как присоединиться к столам?
$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();
Но я получаю следующее сообщение об ошибке:
"PageAnchor" with an alias of "pa" in your query does not reference the parent component it is related to., referer: example.com/abc/abc
Любая идея?
http://oldforum.symfony-project.org/index.php/m/69063/ –