the property is set when setting the _serializer. The symfony2 serializer supports serializer groups that define which properties of the object to be serialized are serialized and which ones are ignored.