cakephp/cakephp — pull request #2359 by markstory (2013-11-19 02:41:52+00:00)
Title: 3.0 paginator component

As per #2330 Update the `PaginatorComponent` to work with the new ORM. I've also taken the liberty to un-deprecate `Controller::paginate()` as it now serves enough functionality to be useful. Also I think the previous discussions we have had around how to handle that method and the `$paginate` property convinced me of its use.

I've removed the `$scope` parameter from paginate() as it was just another way to define local changes to the paginate property, which can easily be modified per method. I've also removed the PaginatorComponent::settings as I think the definition of settings has historically fit on the controllers, and I'd hate to have it live in two places.

### Outstanding issues

* I don't know how we can properly handle sorting on associated tables. Right now that code does not work.
* VirtualFields - There are several tests still skipped because of virtual fields. Right now the new ORM does not include virtualFields as the Query builder is far more expressive so the need for them is much less. However, that presently makes it impossible to sort on computed values. Any ideas on how we can solve this would be appreciated.