{"action":"closed","issue":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/5601","labels_url":"https://api.github.com/repos/cakephp/cakephp/issues/5601/labels{/name}","comments_url":"https://api.github.com/repos/cakephp/cakephp/issues/5601/comments","events_url":"https://api.github.com/repos/cakephp/cakephp/issues/5601/events","html_url":"https://github.com/cakephp/cakephp/issues/5601","id":53681891,"number":5601,"title":"mapReduce not working in association with custom finder","user":{"login":"mchiron","id":4494725,"avatar_url":"https://avatars.githubusercontent.com/u/4494725?v=3","gravatar_id":"","url":"https://api.github.com/users/mchiron","html_url":"https://github.com/mchiron","followers_url":"https://api.github.com/users/mchiron/followers","following_url":"https://api.github.com/users/mchiron/following{/other_user}","gists_url":"https://api.github.com/users/mchiron/gists{/gist_id}","starred_url":"https://api.github.com/users/mchiron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mchiron/subscriptions","organizations_url":"https://api.github.com/users/mchiron/orgs","repos_url":"https://api.github.com/users/mchiron/repos","events_url":"https://api.github.com/users/mchiron/events{/privacy}","received_events_url":"https://api.github.com/users/mchiron/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cakephp/cakephp/labels/documentation","name":"documentation","color":"FFFFFF"},{"url":"https://api.github.com/repos/cakephp/cakephp/labels/On%20hold","name":"On hold","color":"eb6420"}],"state":"closed","locked":false,"assignee":{"login":"markstory","id":24086,"avatar_url":"https://avatars.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},"milestone":{"url":"https://api.github.com/repos/cakephp/cakephp/milestones/7","labels_url":"https://api.github.com/repos/cakephp/cakephp/milestones/7/labels","id":453043,"number":7,"title":"3.0.0","description":"New major release that breaks compatibility with 2.x\r\n\r\n- PHP5.4.19+\r\n- New ORM & behaviors.\r\n- Improved Routing\r\n- PSR-0 and composer support.\r\n- Simpler configuration and bootstrapping.\r\n- Improved configuration handling.\r\n- Improved bake.\r\n\r\nSee [the roadmap](http://github.com/cakephp/cakephp/wiki/3.0-roadmap) for more details.","creator":{"login":"lh-import","id":5175817,"avatar_url":"https://avatars.githubusercontent.com/u/5175817?v=3","gravatar_id":"","url":"https://api.github.com/users/lh-import","html_url":"https://github.com/lh-import","followers_url":"https://api.github.com/users/lh-import/followers","following_url":"https://api.github.com/users/lh-import/following{/other_user}","gists_url":"https://api.github.com/users/lh-import/gists{/gist_id}","starred_url":"https://api.github.com/users/lh-import/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lh-import/subscriptions","organizations_url":"https://api.github.com/users/lh-import/orgs","repos_url":"https://api.github.com/users/lh-import/repos","events_url":"https://api.github.com/users/lh-import/events{/privacy}","received_events_url":"https://api.github.com/users/lh-import/received_events","type":"User","site_admin":false},"open_issues":19,"closed_issues":2307,"state":"open","created_at":"2013-10-11T20:56:23Z","updated_at":"2015-02-14T03:10:34Z","due_on":null,"closed_at":null},"comments":9,"created_at":"2015-01-07T21:03:12Z","updated_at":"2015-02-14T03:10:33Z","closed_at":"2015-02-14T03:10:33Z","body":"Got a little problem with custom finder in the belongsTo association. Here an example of what I try to make: \r\nA House as a Client who as Datas.\r\nHouses belongsTo Clients With finder => \"datas\"\r\nClients hasMany Datas\r\nDatas belongsTo Fields\r\n\r\nI then do something like:\r\nHouses - contain('Clients')\r\n\r\nFor the function findDatas(...) in Clients, I set a contain Datas => ['Fields'] and a mapReduce with only a mapper. This mapper is not called."}}