{"action":"closed","issue":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/8933","repository_url":"https://api.github.com/repos/cakephp/cakephp","labels_url":"https://api.github.com/repos/cakephp/cakephp/issues/8933/labels{/name}","comments_url":"https://api.github.com/repos/cakephp/cakephp/issues/8933/comments","events_url":"https://api.github.com/repos/cakephp/cakephp/issues/8933/events","html_url":"https://github.com/cakephp/cakephp/issues/8933","id":158371185,"number":8933,"title":"Pagination 'NOT' notation fails with i18n","user":{"login":"bancer","id":3830106,"avatar_url":"https://avatars0.githubusercontent.com/u/3830106?v=3","gravatar_id":"","url":"https://api.github.com/users/bancer","html_url":"https://github.com/bancer","followers_url":"https://api.github.com/users/bancer/followers","following_url":"https://api.github.com/users/bancer/following{/other_user}","gists_url":"https://api.github.com/users/bancer/gists{/gist_id}","starred_url":"https://api.github.com/users/bancer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bancer/subscriptions","organizations_url":"https://api.github.com/users/bancer/orgs","repos_url":"https://api.github.com/users/bancer/repos","events_url":"https://api.github.com/users/bancer/events{/privacy}","received_events_url":"https://api.github.com/users/bancer/received_events","type":"User","site_admin":false},"labels":[{"id":60504544,"url":"https://api.github.com/repos/cakephp/cakephp/labels/Defect","name":"Defect","color":"f7c6c7","default":false},{"id":60504396,"url":"https://api.github.com/repos/cakephp/cakephp/labels/i18n","name":"i18n","color":"FFFFFF","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/cakephp/cakephp/milestones/104","html_url":"https://github.com/cakephp/cakephp/milestone/104","labels_url":"https://api.github.com/repos/cakephp/cakephp/milestones/104/labels","id":2014888,"number":104,"title":"2.10.0","description":"Backwards compatible enhancements for 2.x. The last feature release for 2.x","creator":{"login":"markstory","id":24086,"avatar_url":"https://avatars0.githubusercontent.com/u/24086?v=3","gravatar_id":"","url":"https://api.github.com/users/markstory","html_url":"https://github.com/markstory","followers_url":"https://api.github.com/users/markstory/followers","following_url":"https://api.github.com/users/markstory/following{/other_user}","gists_url":"https://api.github.com/users/markstory/gists{/gist_id}","starred_url":"https://api.github.com/users/markstory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstory/subscriptions","organizations_url":"https://api.github.com/users/markstory/orgs","repos_url":"https://api.github.com/users/markstory/repos","events_url":"https://api.github.com/users/markstory/events{/privacy}","received_events_url":"https://api.github.com/users/markstory/received_events","type":"User","site_admin":false},"open_issues":16,"closed_issues":47,"state":"open","created_at":"2016-09-19T19:57:30Z","updated_at":"2017-07-05T01:24:58Z","due_on":"2017-07-09T07:00:00Z","closed_at":null},"comments":3,"created_at":"2016-06-03T13:47:48Z","updated_at":"2017-07-05T01:24:58Z","closed_at":"2017-07-05T01:24:58Z","body":"This is a (multiple allowed):\n- [x] bug\n- [ ] enhancement\n- [ ] feature-discussion (RFC)\n- CakePHP Version: 2.8.4.\n- Platform and Target: Linux, Apache, MySQL.\n### What you did\n\nIn the controller:\n\n```\n$this->Paginator->settings['conditions'] = array(\n    'NOT' => array(\n        'I18n__title.content' => ''\n    ),\n);\n```\n### Expected Behavior\n\nProperly paginated page\n### Actual Behavior\n\nError: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'I18n__title.content' in 'where clause'\n### Solution\n\nI fixed it with:\n\n```\n$this->Paginator->settings['conditions'] = array(\n    'I18n__title.content !=' => ''\n);\n```\n\nbut it would be good if array notation with 'NOT' would not fail.\n"}}
{"actor":{"display_login":"markstory"}}