0
我怎麼能繼續用左後得到的對象加入我可以得到什麼樣的對象什麼將是一個學說的輸出1.2加入
$q = Doctrine_Query::create()
->from('Student s')
->leftJoin('s.Book b')
->where('s.std_number=?',$stdNumber);
$studentBookCollection = $q->execute();
說Student對象有這樣的getName功能(),getAge()和Book對象都有getPublisher(),getYear(),這兩個對象具有多對多的關係並且有一個關係表。
我如何使用$ studentBookCollection獲取關於該書或學生的信息。