Using doctrines findBy/getBy magic methods with the pager object?

Fran89

New Member
Is it possible to use doctrines magic methods (in this case findBy*) with sfDoctrinePager? I'm getting the following error:\[code\]Call to undefined method Doctrine_Collection::offset()\[/code\]Here is the code:\[code\]$this->pager->setQuery(Doctrine::getTable('notification')->findByUserId($this->getUser()->getGuardUser()->getId()));\[/code\]I know I can build a query myself just want to know if it's possible using the "magic" methods.
 
Back
Top