{"action":"created","issue":{"url":"https://api.github.com/repos/loadsys/CakePHP-Serializers/issues/72","labels_url":"https://api.github.com/repos/loadsys/CakePHP-Serializers/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/loadsys/CakePHP-Serializers/issues/72/comments","events_url":"https://api.github.com/repos/loadsys/CakePHP-Serializers/issues/72/events","html_url":"https://github.com/loadsys/CakePHP-Serializers/issues/72","id":63708724,"number":72,"title":"Pagination issue with index method in bake","user":{"login":"t1mmen","id":192263,"avatar_url":"https://avatars.githubusercontent.com/u/192263?v=3","gravatar_id":"","url":"https://api.github.com/users/t1mmen","html_url":"https://github.com/t1mmen","followers_url":"https://api.github.com/users/t1mmen/followers","following_url":"https://api.github.com/users/t1mmen/following{/other_user}","gists_url":"https://api.github.com/users/t1mmen/gists{/gist_id}","starred_url":"https://api.github.com/users/t1mmen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t1mmen/subscriptions","organizations_url":"https://api.github.com/users/t1mmen/orgs","repos_url":"https://api.github.com/users/t1mmen/repos","events_url":"https://api.github.com/users/t1mmen/events{/privacy}","received_events_url":"https://api.github.com/users/t1mmen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-23T12:16:53Z","updated_at":"2015-03-23T15:10:02Z","closed_at":null,"body":"Fresh bake of a Video model/controller results in:\r\n\r\n```php\r\n// Bake method:\r\npublic function index() {\r\n\t$this->Paginator->settings = array_merge($this->paginate, array()); // The offending line\r\n\t$videos = $this->paginate();\r\n\t$this->set(compact('videos'));\r\n}\r\n\r\n// Output:\r\nNotice (8): Indirect modification of overloaded property VideosController::$Paginator has no effect [APP/Controller/VideosController.php, line 53]\r\nWarning (2): Creating default object from empty value [APP/Controller/VideosController.php, line 53]\r\n```"},"comment":{"url":"https://api.github.com/repos/loadsys/CakePHP-Serializers/issues/comments/85041705","html_url":"https://github.com/loadsys/CakePHP-Serializers/issues/72#issuecomment-85041705","issue_url":"https://api.github.com/repos/loadsys/CakePHP-Serializers/issues/72","id":85041705,"user":{"login":"jtyost2","id":85320,"avatar_url":"https://avatars.githubusercontent.com/u/85320?v=3","gravatar_id":"","url":"https://api.github.com/users/jtyost2","html_url":"https://github.com/jtyost2","followers_url":"https://api.github.com/users/jtyost2/followers","following_url":"https://api.github.com/users/jtyost2/following{/other_user}","gists_url":"https://api.github.com/users/jtyost2/gists{/gist_id}","starred_url":"https://api.github.com/users/jtyost2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtyost2/subscriptions","organizations_url":"https://api.github.com/users/jtyost2/orgs","repos_url":"https://api.github.com/users/jtyost2/repos","events_url":"https://api.github.com/users/jtyost2/events{/privacy}","received_events_url":"https://api.github.com/users/jtyost2/received_events","type":"User","site_admin":false},"created_at":"2015-03-23T15:10:02Z","updated_at":"2015-03-23T15:10:02Z","body":"Cause of the bug most likely is: Paginator Component isn't active for that controller in question.\r\n\r\nNoted to investigate and probably update the Bake Templates using logic from Cake's Core to fix for ensuring Paginator is active for the controller."}}