{"action":"created","issue":{"url":"https://api.github.com/repos/astaxie/beego/issues/1252","labels_url":"https://api.github.com/repos/astaxie/beego/issues/1252/labels{/name}","comments_url":"https://api.github.com/repos/astaxie/beego/issues/1252/comments","events_url":"https://api.github.com/repos/astaxie/beego/issues/1252/events","html_url":"https://github.com/astaxie/beego/issues/1252","id":94243501,"number":1252,"title":"RelatedSel() unable to load many-to-many records.","user":{"login":"mewben","id":2163157,"avatar_url":"https://avatars.githubusercontent.com/u/2163157?v=3","gravatar_id":"","url":"https://api.github.com/users/mewben","html_url":"https://github.com/mewben","followers_url":"https://api.github.com/users/mewben/followers","following_url":"https://api.github.com/users/mewben/following{/other_user}","gists_url":"https://api.github.com/users/mewben/gists{/gist_id}","starred_url":"https://api.github.com/users/mewben/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mewben/subscriptions","organizations_url":"https://api.github.com/users/mewben/orgs","repos_url":"https://api.github.com/users/mewben/repos","events_url":"https://api.github.com/users/mewben/events{/privacy}","received_events_url":"https://api.github.com/users/mewben/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-10T07:59:46Z","updated_at":"2015-07-13T22:49:01Z","closed_at":null,"body":"I don't know if this is a bug or not implemented yet. Please fill me in.\r\n\r\nI have this:\r\n\r\n```\r\ntype Post struct {\r\n\tId    int\r\n\tTitle string\r\n\tTags  []*Tag `orm:\"rel(m2m)`\r\n}\r\n\r\ntype Tag struct {\r\n\tId    int\r\n\tName  string\r\n\tPosts []*Post `orm:\"reverse(many)\"`\r\n}\r\n```\r\n\r\nAs I run this:\r\n```\r\nvar posts []*Post\r\norm.NewOrm().QueryTable(new(Post)).RelatedSel().All(&posts)\r\n```\r\n\r\nIt returns an array of posts but tags inside each record is null.\r\n```\r\n[\r\n    {\r\n        \"Id\": 1,\r\n        \"Title\": \"Post 1\",\r\n        \"Tags\": null\r\n    },\r\n    {\r\n        \"Id\": 4,\r\n        \"Title\": \"Post 4\",\r\n        \"Tags\": null\r\n    }\r\n]\r\n```\r\n\r\nHow to load all the related Tags? Please help."},"comment":{"url":"https://api.github.com/repos/astaxie/beego/issues/comments/121083237","html_url":"https://github.com/astaxie/beego/issues/1252#issuecomment-121083237","issue_url":"https://api.github.com/repos/astaxie/beego/issues/1252","id":121083237,"user":{"login":"ilgooz","id":6023117,"avatar_url":"https://avatars.githubusercontent.com/u/6023117?v=3","gravatar_id":"","url":"https://api.github.com/users/ilgooz","html_url":"https://github.com/ilgooz","followers_url":"https://api.github.com/users/ilgooz/followers","following_url":"https://api.github.com/users/ilgooz/following{/other_user}","gists_url":"https://api.github.com/users/ilgooz/gists{/gist_id}","starred_url":"https://api.github.com/users/ilgooz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilgooz/subscriptions","organizations_url":"https://api.github.com/users/ilgooz/orgs","repos_url":"https://api.github.com/users/ilgooz/repos","events_url":"https://api.github.com/users/ilgooz/events{/privacy}","received_events_url":"https://api.github.com/users/ilgooz/received_events","type":"User","site_admin":false},"created_at":"2015-07-13T22:49:01Z","updated_at":"2015-07-13T22:49:01Z","body":"+1\r\nI am also having \"PANIC: unknown model/table name xxx\" because of this [line](https://github.com/astaxie/beego/blob/af71289c25f64e35b688376d5115dbf8b93d87ab/orm/db_tables.go#L134)\r\n@Hepri Can you please provide an example? I think LoadRelated() doesn't do the job."}}