{"action":"created","issue":{"url":"https://api.github.com/repos/ci-bonfire/Sprint/issues/99","labels_url":"https://api.github.com/repos/ci-bonfire/Sprint/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/ci-bonfire/Sprint/issues/99/comments","events_url":"https://api.github.com/repos/ci-bonfire/Sprint/issues/99/events","html_url":"https://github.com/ci-bonfire/Sprint/issues/99","id":70798110,"number":99,"title":"CIDbModel return whole array from trigger if $row = null","user":{"login":"namemsile","id":1858286,"avatar_url":"https://avatars.githubusercontent.com/u/1858286?v=3","gravatar_id":"","url":"https://api.github.com/users/namemsile","html_url":"https://github.com/namemsile","followers_url":"https://api.github.com/users/namemsile/followers","following_url":"https://api.github.com/users/namemsile/following{/other_user}","gists_url":"https://api.github.com/users/namemsile/gists{/gist_id}","starred_url":"https://api.github.com/users/namemsile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/namemsile/subscriptions","organizations_url":"https://api.github.com/users/namemsile/orgs","repos_url":"https://api.github.com/users/namemsile/repos","events_url":"https://api.github.com/users/namemsile/events{/privacy}","received_events_url":"https://api.github.com/users/namemsile/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-24T21:25:25Z","updated_at":"2015-04-24T23:32:21Z","closed_at":null,"body":"If no rows found by find(), $row = null, array ```['id' => $id, 'method' => 'find', 'fields' => $row]``` passed to trigger():\r\n```\r\n// skipped this, because $data['fields'] = NULL\r\nif (isset($data['fields']))\r\n{\r\n    return $data['fields'];\r\n}\r\n```\r\nand find() return to controller ```array('method' => 'find', 'fields' => null)``` from trigger() which is not handy to handle in controller."},"comment":{"url":"https://api.github.com/repos/ci-bonfire/Sprint/issues/comments/96100905","html_url":"https://github.com/ci-bonfire/Sprint/issues/99#issuecomment-96100905","issue_url":"https://api.github.com/repos/ci-bonfire/Sprint/issues/99","id":96100905,"user":{"login":"lonnieezell","id":51931,"avatar_url":"https://avatars.githubusercontent.com/u/51931?v=3","gravatar_id":"","url":"https://api.github.com/users/lonnieezell","html_url":"https://github.com/lonnieezell","followers_url":"https://api.github.com/users/lonnieezell/followers","following_url":"https://api.github.com/users/lonnieezell/following{/other_user}","gists_url":"https://api.github.com/users/lonnieezell/gists{/gist_id}","starred_url":"https://api.github.com/users/lonnieezell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lonnieezell/subscriptions","organizations_url":"https://api.github.com/users/lonnieezell/orgs","repos_url":"https://api.github.com/users/lonnieezell/repos","events_url":"https://api.github.com/users/lonnieezell/events{/privacy}","received_events_url":"https://api.github.com/users/lonnieezell/received_events","type":"User","site_admin":false},"created_at":"2015-04-24T23:32:21Z","updated_at":"2015-04-24T23:32:21Z","body":"I'm away from computer this weekend but will gladly accept pull requests :)\n\nSent from my iPhone\n\n> On Apr 24, 2015, at 4:25 PM, Dmitry <notifications@github.com> wrote:\n> \n> If no rows found by find(), $row = null, array ['id' => $id, 'method' => 'find', 'fields' => $row] passed to trigger, where\n> \n> // skipped this, because $data['fields'] = NULL\n> if (isset($data['fields']))\n> {\n>     return $data['fields'];\n> }\n> and find() return to controller array('method' => 'find', 'fields' => null) from trigger() which is not handy to handle in controller.\n> \n> —\n> Reply to this email directly or view it on GitHub.\n> \n"}}