2012-01-07 5 views
0

현재 프로젝트를 종료 중입니다. SQL 쿼리에서 두 테이블을 조인 싶습니다.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/ –

답변

관련 문제