schmittjoh/JMSSerializerBundle — pull request #96 by chregu (2012-03-22 07:09:49+00:00)
Title: Add the Groups feature

See #60

It adds `@Serializer\Group"

Annotate your properties with

```
* @Serializer\Group({"Bar","foo"})
```

then do

```
$serializer->setGroups(array("foo","zero"));
```

and if any matches, the property will be serialized. If none matches or there is no group tag, then it won't be serialized.

2 Things:

* Maybe we should use `Groups` instead of `Group`

* I didn't use `@Expose(groups={"user"})` which would maybe be better, since then we could use it also in Exclude. Now it's basically only usable as Expose.

If someone can give me a hint where I have to look for the 2nd point in the code, I could maybe change that.