{"action":"created","issue":{"url":"https://api.github.com/repos/thephpleague/fractal/issues/168","labels_url":"https://api.github.com/repos/thephpleague/fractal/issues/168/labels{/name}","comments_url":"https://api.github.com/repos/thephpleague/fractal/issues/168/comments","events_url":"https://api.github.com/repos/thephpleague/fractal/issues/168/events","html_url":"https://github.com/thephpleague/fractal/issues/168","id":63947495,"number":168,"title":"setRecursionLimit() function does not seem to be limiting circular dependencies","user":{"login":"AMRoche","id":2025790,"avatar_url":"https://avatars.githubusercontent.com/u/2025790?v=3","gravatar_id":"","url":"https://api.github.com/users/AMRoche","html_url":"https://github.com/AMRoche","followers_url":"https://api.github.com/users/AMRoche/followers","following_url":"https://api.github.com/users/AMRoche/following{/other_user}","gists_url":"https://api.github.com/users/AMRoche/gists{/gist_id}","starred_url":"https://api.github.com/users/AMRoche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AMRoche/subscriptions","organizations_url":"https://api.github.com/users/AMRoche/orgs","repos_url":"https://api.github.com/users/AMRoche/repos","events_url":"https://api.github.com/users/AMRoche/events{/privacy}","received_events_url":"https://api.github.com/users/AMRoche/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-24T09:24:48Z","updated_at":"2015-08-31T18:48:32Z","closed_at":null,"body":"Issue being created off the back of comments in issue [163](https://github.com/thephpleague/fractal/issues/163).\r\n\r\nExpected behaviour;\r\nI would expect the `setRecursionLimit` function to limit the depth to which these are circularly included.\r\n\r\nActual behaviour;\r\nPHP Error of 'maximum nested function depth reached', even when the recursion limit is set to 1.\r\n\r\nWays to reproduce;\r\n\r\n```\r\nTwo Models; Model A and Model B.\r\nA's Transformer has B as a default include, and B's Transformer has A as a default include.\r\n```\r\n\r\nCall the `$this->fractal->createData($resource)->toArray()` methods."},"comment":{"url":"https://api.github.com/repos/thephpleague/fractal/issues/comments/136462704","html_url":"https://github.com/thephpleague/fractal/issues/168#issuecomment-136462704","issue_url":"https://api.github.com/repos/thephpleague/fractal/issues/168","id":136462704,"user":{"login":"willishq","id":1564903,"avatar_url":"https://avatars.githubusercontent.com/u/1564903?v=3","gravatar_id":"","url":"https://api.github.com/users/willishq","html_url":"https://github.com/willishq","followers_url":"https://api.github.com/users/willishq/followers","following_url":"https://api.github.com/users/willishq/following{/other_user}","gists_url":"https://api.github.com/users/willishq/gists{/gist_id}","starred_url":"https://api.github.com/users/willishq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willishq/subscriptions","organizations_url":"https://api.github.com/users/willishq/orgs","repos_url":"https://api.github.com/users/willishq/repos","events_url":"https://api.github.com/users/willishq/events{/privacy}","received_events_url":"https://api.github.com/users/willishq/received_events","type":"User","site_admin":false},"created_at":"2015-08-31T18:48:32Z","updated_at":"2015-08-31T18:48:32Z","body":"What specific use-case do you have for requiring circular dependency?"}}