{"action":"opened","issue":{"url":"https://api.github.com/repos/tgriesser/bookshelf/issues/836","labels_url":"https://api.github.com/repos/tgriesser/bookshelf/issues/836/labels{/name}","comments_url":"https://api.github.com/repos/tgriesser/bookshelf/issues/836/comments","events_url":"https://api.github.com/repos/tgriesser/bookshelf/issues/836/events","html_url":"https://github.com/tgriesser/bookshelf/issues/836","id":95410448,"number":836,"title":"Loading unknown amount of nested relations","user":{"login":"elinalukkarinen","id":6104085,"avatar_url":"https://avatars.githubusercontent.com/u/6104085?v=3","gravatar_id":"","url":"https://api.github.com/users/elinalukkarinen","html_url":"https://github.com/elinalukkarinen","followers_url":"https://api.github.com/users/elinalukkarinen/followers","following_url":"https://api.github.com/users/elinalukkarinen/following{/other_user}","gists_url":"https://api.github.com/users/elinalukkarinen/gists{/gist_id}","starred_url":"https://api.github.com/users/elinalukkarinen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elinalukkarinen/subscriptions","organizations_url":"https://api.github.com/users/elinalukkarinen/orgs","repos_url":"https://api.github.com/users/elinalukkarinen/repos","events_url":"https://api.github.com/users/elinalukkarinen/events{/privacy}","received_events_url":"https://api.github.com/users/elinalukkarinen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-16T11:12:02Z","updated_at":"2015-07-16T11:12:02Z","closed_at":null,"body":"I have a product, which has a position. The position has a parent, which is another position, or null, if we are on the highest level of hierarchy. When I load all of my products, I `.fetchAll({withRelated: 'position'})`. It also works with `.fetchAll({withRelated: ['position', 'position.position']})`, but I don't know how many positions there will be, and there will be a different amount of them for each product, so I can't just list all the nested relations. My goal is to return all my products with their full positions.\r\n\r\nI've tried using both load() and related() to fetch more deeply nested positions for the models returned by the initial fetch, but I haven't been able to get anything added to the collection of products. I'd like to know if I'm trying to do something impossible, before I try any more."}}