{"action":"created","issue":{"url":"https://api.github.com/repos/Sylius/Sylius/issues/3533","labels_url":"https://api.github.com/repos/Sylius/Sylius/issues/3533/labels{/name}","comments_url":"https://api.github.com/repos/Sylius/Sylius/issues/3533/comments","events_url":"https://api.github.com/repos/Sylius/Sylius/issues/3533/events","html_url":"https://github.com/Sylius/Sylius/issues/3533","id":115291655,"number":3533,"title":"Resources are not supported in serialized data","user":{"login":"gperdomor","id":371939,"avatar_url":"https://avatars.githubusercontent.com/u/371939?v=3","gravatar_id":"","url":"https://api.github.com/users/gperdomor","html_url":"https://github.com/gperdomor","followers_url":"https://api.github.com/users/gperdomor/followers","following_url":"https://api.github.com/users/gperdomor/following{/other_user}","gists_url":"https://api.github.com/users/gperdomor/gists{/gist_id}","starred_url":"https://api.github.com/users/gperdomor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gperdomor/subscriptions","organizations_url":"https://api.github.com/users/gperdomor/orgs","repos_url":"https://api.github.com/users/gperdomor/repos","events_url":"https://api.github.com/users/gperdomor/events{/privacy}","received_events_url":"https://api.github.com/users/gperdomor/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Sylius/Sylius/labels/Bug","name":"Bug","color":"e10c02"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-05T14:14:20Z","updated_at":"2015-11-13T16:16:38Z","closed_at":null,"body":"Hi!.\r\n\r\nI have a list of taxonomies which are loaded using a custom method, in the backend works fine. I have a select in the frontend which i want to load using the same custom repository method but i got this when pagination is disabled:\r\n<code>Resources are not supported in serialized data. Path: Monolog\\Handler\\StreamHandler -> Symfony\\Bridge\\Monolog\\Logger -> Symfony\\Bridge\\Doctrine\\Logger\\DbalLogger -> Doctrine\\DBAL\\Logging\\LoggerChain -> Doctrine\\DBAL\\Configuration -> Doctrine\\DBAL\\Connection -> Doctrine\\ORM\\EntityManager -> Doctrine\\ORM\\Query -> Doctrine\\ORM\\Tools\\Pagination\\Paginator -> Pagerfanta\\Adapter\\DoctrineORMAdapter -> Pagerfanta\\Pagerfanta</code>\r\n\r\nRoute example in backend:\r\n<code><pre>taxonomy_index:\r\n    path: /taxonomies\r\n    methods: [GET]\r\n    defaults:\r\n        _controller: sylius.controller.taxonomy:indexAction\r\n        _sylius:\r\n            template: MyBundle:Backend/Taxonomy:index.html.twig\r\n            paginate: 25\r\n            repository:\r\n                method: createFilterPaginator\r\n                arguments: [$criteria, $sorting, $deleted]\r\n            sortable: true\r\n            sorting:\r\n                name: asc</pre></code>\r\n\r\nRoute in frontend:\r\n<code><pre>api_taxonomy_index:\r\n    path: /api/taxonomies\r\n    methods: [GET]\r\n    defaults:\r\n        _controller: sylius.controller.taxonomy:indexAction\r\n        _sylius:\r\n            paginate: false\r\n            permission: false\r\n            repository:\r\n                method: createFilterPaginator\r\n                arguments: [$criteria, null, false, 1, 'expr:service(\"channel.context.channel\").getChannel()']\r\n            sorting:\r\n                name: asc</pre></code>\r\n\r\nIt's a bug or i'm doing something wrong?"},"comment":{"url":"https://api.github.com/repos/Sylius/Sylius/issues/comments/156476934","html_url":"https://github.com/Sylius/Sylius/issues/3533#issuecomment-156476934","issue_url":"https://api.github.com/repos/Sylius/Sylius/issues/3533","id":156476934,"user":{"login":"gperdomor","id":371939,"avatar_url":"https://avatars.githubusercontent.com/u/371939?v=3","gravatar_id":"","url":"https://api.github.com/users/gperdomor","html_url":"https://github.com/gperdomor","followers_url":"https://api.github.com/users/gperdomor/followers","following_url":"https://api.github.com/users/gperdomor/following{/other_user}","gists_url":"https://api.github.com/users/gperdomor/gists{/gist_id}","starred_url":"https://api.github.com/users/gperdomor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gperdomor/subscriptions","organizations_url":"https://api.github.com/users/gperdomor/orgs","repos_url":"https://api.github.com/users/gperdomor/repos","events_url":"https://api.github.com/users/gperdomor/events{/privacy}","received_events_url":"https://api.github.com/users/gperdomor/received_events","type":"User","site_admin":false},"created_at":"2015-11-13T16:16:38Z","updated_at":"2015-11-13T16:16:38Z","body":"@pjedrzejewski Other thing, if you configure the api route, to use serialization groups, the result is a JSON of JSON, instead an Array of JSON,  this break mi UI.\r\n\r\nAs workaround you can using <code>$quryBuilder->getQuery()->getArrayResult</code> in the repository."}}