Closed franbenz closed 8 years ago
What's the usecase?
While the serializer does clean up most of the unwanted data based on the query params, you should be using the query params and passing them to Doctrine selecting what you want too.
As always, definately willing to merge the PR if you come with a better solution than currently available. Write the test and we'll see. :+1:
I have a Doctrine entity with some referenced entities eagerly fetched(to avoid closures). I only want to return the top level entity, including it's foreign key references in the relationships
member, but not including the referenced entities in the included
member.
I'll try to add a test for this later. This does not seem to affect your current tests. I don't know if I could add a test with Doctrine entities. Would you recommend adding this kind of test?