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获取关于该书或学生的信息。