{"action":"created","issue":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/1721","labels_url":"https://api.github.com/repos/cakephp/cakephp/issues/1721/labels{/name}","comments_url":"https://api.github.com/repos/cakephp/cakephp/issues/1721/comments","events_url":"https://api.github.com/repos/cakephp/cakephp/issues/1721/events","html_url":"https://github.com/cakephp/cakephp/issues/1721","id":20892909,"number":1721,"title":"counterCache on HABTM relationships","user":{"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},"labels":[{"url":"https://api.github.com/repos/cakephp/cakephp/labels/Enhancement","name":"Enhancement","color":"bfe5bf"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/cakephp/cakephp/milestones/2","html_url":"https://github.com/cakephp/cakephp/milestones/Future","labels_url":"https://api.github.com/repos/cakephp/cakephp/milestones/2/labels","id":453023,"number":2,"title":"Future","description":null,"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":13,"closed_issues":245,"state":"open","created_at":"2013-10-11T20:37:33Z","updated_at":"2015-04-29T19:23:03Z","due_on":null,"closed_at":null},"comments":18,"created_at":"2013-10-11T20:37:34Z","updated_at":"2015-05-01T08:14:05Z","closed_at":"2014-04-09T07:11:30Z","body":"Created by **[Predominant](https://github.com/predominant)**, 9th Dec 2009. *(originally [Lighthouse ticket #8](http://cakephp.lighthouseapp.com/projects/42648/tickets/8))*:\n- - - -\n\n(Reported by: ark0n3)\n\nAs noted in http://bakery.cakephp.org/articles/view/counter-cache-behavior-for-habtm-relations, I hope counterCache will be enabled for HABTM relationship as well.\n\nThanks for your great work, CakePHP is a gem."},"comment":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/comments/98073403","html_url":"https://github.com/cakephp/cakephp/issues/1721#issuecomment-98073403","issue_url":"https://api.github.com/repos/cakephp/cakephp/issues/1721","id":98073403,"user":{"login":"emmio-micke","id":2559547,"avatar_url":"https://avatars.githubusercontent.com/u/2559547?v=3","gravatar_id":"","url":"https://api.github.com/users/emmio-micke","html_url":"https://github.com/emmio-micke","followers_url":"https://api.github.com/users/emmio-micke/followers","following_url":"https://api.github.com/users/emmio-micke/following{/other_user}","gists_url":"https://api.github.com/users/emmio-micke/gists{/gist_id}","starred_url":"https://api.github.com/users/emmio-micke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emmio-micke/subscriptions","organizations_url":"https://api.github.com/users/emmio-micke/orgs","repos_url":"https://api.github.com/users/emmio-micke/repos","events_url":"https://api.github.com/users/emmio-micke/events{/privacy}","received_events_url":"https://api.github.com/users/emmio-micke/received_events","type":"User","site_admin":false},"created_at":"2015-05-01T08:14:05Z","updated_at":"2015-05-01T08:14:05Z","body":"Yes, I did. Couldn't get it to work. I don't remember what didn't work, because I tried a lot of things and had different errors, but either I got an error message that it couldn't find the primary key in the count table, or that I didn't get an error but the article_count field wasn't updated. I can try it again if you (or anyone else) would like to help me getting it right."}}