Doctrine2 - is there a pre-selection hook?
问题 I'm developing a ws with Symfony2 / Doctrine2, and I'm trying to hook into Doctrine2 lifecycle and trigger a function before any SELECT action - but without any luck. Basically, i'd like to dynamically manipulate the selection queries adding limit/offset when certain parameters are found in the request, but it seems that Doctrine2 hooks concern only insert, delete and update actions. Am i missing something? Thanks. 回答1: U have to use Doctrine Filter Doctrine 2.2 features a filter system that