{"action":"created","issue":{"url":"https://api.github.com/repos/laravel-doctrine/orm/issues/201","repository_url":"https://api.github.com/repos/laravel-doctrine/orm","labels_url":"https://api.github.com/repos/laravel-doctrine/orm/issues/201/labels{/name}","comments_url":"https://api.github.com/repos/laravel-doctrine/orm/issues/201/comments","events_url":"https://api.github.com/repos/laravel-doctrine/orm/issues/201/events","html_url":"https://github.com/laravel-doctrine/orm/issues/201","id":196732402,"number":201,"title":"[BUG] Laravel's Internal acceptance testing doesn't allow eager loading.","user":{"login":"ing200086","id":6120212,"avatar_url":"https://avatars.githubusercontent.com/u/6120212?v=3","gravatar_id":"","url":"https://api.github.com/users/ing200086","html_url":"https://github.com/ing200086","followers_url":"https://api.github.com/users/ing200086/followers","following_url":"https://api.github.com/users/ing200086/following{/other_user}","gists_url":"https://api.github.com/users/ing200086/gists{/gist_id}","starred_url":"https://api.github.com/users/ing200086/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ing200086/subscriptions","organizations_url":"https://api.github.com/users/ing200086/orgs","repos_url":"https://api.github.com/users/ing200086/repos","events_url":"https://api.github.com/users/ing200086/events{/privacy}","received_events_url":"https://api.github.com/users/ing200086/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-12-20T17:29:50Z","updated_at":"2016-12-20T19:28:22Z","closed_at":null,"body":"I am like Doctrine's data mapper arch, and I am running through the getting started tutorial. With laravel I found an issue when trying to do eager loading of relationships. Is this a known bug, and is there a work around? I don't like the idea of not testing the end-points of my API. Any help would be appreciated.\r\n\r\nI am providing my repository for ease.\r\n    https://github.com/ing200086/laravel-doctrine-learning.git\r\n\r\nIf you setup the application and run phpunit, there is an issue with the json structure when calling the /api/v1/user/ URI. The issue is that the internal testing doesn't seem to eager load the bugs. The odd thing is when you access it directly from Postman or Chrome, it does."},"comment":{"url":"https://api.github.com/repos/laravel-doctrine/orm/issues/comments/268334736","html_url":"https://github.com/laravel-doctrine/orm/issues/201#issuecomment-268334736","issue_url":"https://api.github.com/repos/laravel-doctrine/orm/issues/201","id":268334736,"user":{"login":"maxbrokman","id":5322152,"avatar_url":"https://avatars.githubusercontent.com/u/5322152?v=3","gravatar_id":"","url":"https://api.github.com/users/maxbrokman","html_url":"https://github.com/maxbrokman","followers_url":"https://api.github.com/users/maxbrokman/followers","following_url":"https://api.github.com/users/maxbrokman/following{/other_user}","gists_url":"https://api.github.com/users/maxbrokman/gists{/gist_id}","starred_url":"https://api.github.com/users/maxbrokman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxbrokman/subscriptions","organizations_url":"https://api.github.com/users/maxbrokman/orgs","repos_url":"https://api.github.com/users/maxbrokman/repos","events_url":"https://api.github.com/users/maxbrokman/events{/privacy}","received_events_url":"https://api.github.com/users/maxbrokman/received_events","type":"User","site_admin":false},"created_at":"2016-12-20T19:28:22Z","updated_at":"2016-12-20T19:28:22Z","body":"Ah sorry, I didn't look at the mappings. Yes it should be eager in the `fetchAll` case I think. \r\n\r\nYour problem doesn't immediately seem to be related to eager or lazy loading though, it should behave the same in the end. "}}
{"actor":{"display_login":"maxbrokman"}}