knplabs/KnpPaginatorBundle — pull request #45 by psliwa (2011-10-28 21:30:41+00:00)
Title: Sort keys whitelist

Hi,

I have done whitelist sort keys feature for your bundle. In present bundle version if you pass to page with used this bundle unknown (bad) sort key, doctrine will throws parse exception (unknown field). Allowing user to freely manipulate dql query is not good idea, whitelist of sort keys is resolving this problem. By default whitelist is off, to set whitelist you must set particular query hint (in DoctrineORMTest is example).

Best regards,
Piotr Śliwa.