In my schema, a user is related to their questions.
I want to display all questions asked by a user.
I also want this page to be paginated using sfDoctrinePager
which requires a Doctrine_Query
as a parameter.
I know I can call $my_user->getQuestions()
to get all questions from my_user, but is there a way to get the query to get all these questions instead? Something like $my_user->getQuestionsQuery()
for example.
Or do I have to implement it myself?