0
有沒有可能使用sfDoctrinePager的教條魔術方法(在這種情況下findBy *)?我收到以下錯誤:使用派生物對象的學說findBy/getBy魔術方法?
Call to undefined method Doctrine_Collection::offset()
下面是代碼:
$this->pager->setQuery(Doctrine::getTable('notification')->findByUserId($this->getUser()->getGuardUser()->getId()));
我知道我可以生成一個查詢自己只是想知道,如果它使用的「神奇」的方法是可能的。