{"action":"created","issue":{"url":"https://api.github.com/repos/sulu-io/sulu-document-manager/issues/20","labels_url":"https://api.github.com/repos/sulu-io/sulu-document-manager/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/sulu-io/sulu-document-manager/issues/20/comments","events_url":"https://api.github.com/repos/sulu-io/sulu-document-manager/issues/20/events","html_url":"https://github.com/sulu-io/sulu-document-manager/issues/20","id":90307190,"number":20,"title":"Parent instantiation closure","user":{"login":"dantleech","id":530801,"avatar_url":"https://avatars.githubusercontent.com/u/530801?v=3","gravatar_id":"","url":"https://api.github.com/users/dantleech","html_url":"https://github.com/dantleech","followers_url":"https://api.github.com/users/dantleech/followers","following_url":"https://api.github.com/users/dantleech/following{/other_user}","gists_url":"https://api.github.com/users/dantleech/gists{/gist_id}","starred_url":"https://api.github.com/users/dantleech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dantleech/subscriptions","organizations_url":"https://api.github.com/users/dantleech/orgs","repos_url":"https://api.github.com/users/dantleech/repos","events_url":"https://api.github.com/users/dantleech/events{/privacy}","received_events_url":"https://api.github.com/users/dantleech/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-23T06:58:00Z","updated_at":"2015-06-23T07:05:58Z","closed_at":null,"body":"The parnet node is eagerly instantaiated when mapped in order to determine the FQN for the proxy.\r\n\r\nThe only viable solution I can think of is mapping a closure as the value, forcing the user to do the following:\r\n\r\n````php\r\npublic function getParent()\r\n{\r\n    return $this->parent();\r\n}\r\n````\r\n\r\nThe other option is loading all objects as proxies all of the time.\r\n\r\n/cc @danrot @wachterjohannes @chirimoya "},"comment":{"url":"https://api.github.com/repos/sulu-io/sulu-document-manager/issues/comments/114385483","html_url":"https://github.com/sulu-io/sulu-document-manager/issues/20#issuecomment-114385483","issue_url":"https://api.github.com/repos/sulu-io/sulu-document-manager/issues/20","id":114385483,"user":{"login":"danrot","id":405874,"avatar_url":"https://avatars.githubusercontent.com/u/405874?v=3","gravatar_id":"","url":"https://api.github.com/users/danrot","html_url":"https://github.com/danrot","followers_url":"https://api.github.com/users/danrot/followers","following_url":"https://api.github.com/users/danrot/following{/other_user}","gists_url":"https://api.github.com/users/danrot/gists{/gist_id}","starred_url":"https://api.github.com/users/danrot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danrot/subscriptions","organizations_url":"https://api.github.com/users/danrot/orgs","repos_url":"https://api.github.com/users/danrot/repos","events_url":"https://api.github.com/users/danrot/events{/privacy}","received_events_url":"https://api.github.com/users/danrot/received_events","type":"User","site_admin":false},"created_at":"2015-06-23T07:05:58Z","updated_at":"2015-06-23T07:05:58Z","body":"Don't we already use proxies for children? What speaks against using them also for the parent?"}}