{"action":"created","issue":{"url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/3409","repository_url":"https://api.github.com/repos/silverstripe/silverstripe-framework","labels_url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/3409/labels{/name}","comments_url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/3409/comments","events_url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/3409/events","html_url":"https://github.com/silverstripe/silverstripe-framework/pull/3409","id":40701683,"number":3409,"title":"FIX: belongs_many_many back to the same class type","user":{"login":"theorytank","id":2048814,"avatar_url":"https://avatars.githubusercontent.com/u/2048814?v=3","gravatar_id":"","url":"https://api.github.com/users/theorytank","html_url":"https://github.com/theorytank","followers_url":"https://api.github.com/users/theorytank/followers","following_url":"https://api.github.com/users/theorytank/following{/other_user}","gists_url":"https://api.github.com/users/theorytank/gists{/gist_id}","starred_url":"https://api.github.com/users/theorytank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theorytank/subscriptions","organizations_url":"https://api.github.com/users/theorytank/orgs","repos_url":"https://api.github.com/users/theorytank/repos","events_url":"https://api.github.com/users/theorytank/events{/privacy}","received_events_url":"https://api.github.com/users/theorytank/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-08-20T14:06:24Z","updated_at":"2016-04-19T08:37:45Z","closed_at":"2016-04-19T08:37:45Z","pull_request":{"url":"https://api.github.com/repos/silverstripe/silverstripe-framework/pulls/3409","html_url":"https://github.com/silverstripe/silverstripe-framework/pull/3409","diff_url":"https://github.com/silverstripe/silverstripe-framework/pull/3409.diff","patch_url":"https://github.com/silverstripe/silverstripe-framework/pull/3409.patch"},"body":"Currently SS get's confused when referencing multiple of the same DataObject type in a belongs_many_many definition using the dot notation.  It doesn't recognize the dot notation at all, and leaving it off means it will just choose the first match in the many_many definition which isn't correct.  This adds in the dot check and reverse lookup functionality allowing for multiple definitions.\r\n\r\nI couldn't find a bug referencing it specifically however there's lots of discussion in the forums and IRC so this problem does in fact exist."},"comment":{"url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/comments/211798202","html_url":"https://github.com/silverstripe/silverstripe-framework/pull/3409#issuecomment-211798202","issue_url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/3409","id":211798202,"user":{"login":"kinglozzer","id":1655548,"avatar_url":"https://avatars.githubusercontent.com/u/1655548?v=3","gravatar_id":"","url":"https://api.github.com/users/kinglozzer","html_url":"https://github.com/kinglozzer","followers_url":"https://api.github.com/users/kinglozzer/followers","following_url":"https://api.github.com/users/kinglozzer/following{/other_user}","gists_url":"https://api.github.com/users/kinglozzer/gists{/gist_id}","starred_url":"https://api.github.com/users/kinglozzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kinglozzer/subscriptions","organizations_url":"https://api.github.com/users/kinglozzer/orgs","repos_url":"https://api.github.com/users/kinglozzer/repos","events_url":"https://api.github.com/users/kinglozzer/events{/privacy}","received_events_url":"https://api.github.com/users/kinglozzer/received_events","type":"User","site_admin":false},"created_at":"2016-04-19T08:37:45Z","updated_at":"2016-04-19T08:37:45Z","body":"Oops, this was fixed in https://github.com/silverstripe/silverstripe-framework/issues/3799 - we must have missed this PR when closing the other ones :)"}}