Results 31 comments of Adrien Brault

When using groups with Hateoas, I specify the Default (which will keep all the Hateoas representations properties) group along with my custom groups. What we could do is add an...

@mvrhov https://github.com/willdurand/Hateoas/issues/141#issuecomment-38796022 Yes, we could add groups to the hateoas built in representations. However even though all the properties/links will have a `hateoas_xxx` group, they should also keep the `Default`...

Looks good! This can be helpful for the timeline bundle that ships with knp paginator support: https://github.com/stephpy/timeline-bundle/blob/master/Resources/doc/pagination.markdown

I don't see any other way. The library could split the serializeLinks and serializeEmbeddeds methods and introduce protected methods: ``` php class JsonHalSerializer { public function serializeLinks(...) { $visitor->addData('_links', $this->getLinks());...

See https://github.com/willdurand/Hateoas/blob/master/src/Hateoas/Serializer/JsonHalSerializer.php#L26-L33

What ? Can you try to phrase your question differently ?

Hateoas cannot fetch the content of a link and embed it automatically. You have to reference the data to embed yourself, see https://github.com/willdurand/Hateoas#embedding-resources

You need to add the groups to those relations (they are excluded the same way the properties are excluded). On Thursday, July 3, 2014, Pablo Martelletti [email protected] wrote: > @willdurand...

Maybe we should rename exclusion to inclusion, I see it is really confusing. On Thursday, July 3, 2014, Kévin EYERMANN [email protected] wrote: > Aw ! Shame on me... > I...