|
@@ -46,6 +46,18 @@ property was available. If a later version is serialized, then this property is
|
|
excluded automatically. The version must be in a format that is understood by
|
|
excluded automatically. The version must be in a format that is understood by
|
|
PHP's ``version_compare`` function.
|
|
PHP's ``version_compare`` function.
|
|
|
|
|
|
|
|
+@Groups
|
|
|
|
+-------
|
|
|
|
+
|
|
|
|
+This annotation can be defined on a property to specifiy if this porperty should
|
|
|
|
+be serialized, if any group is specified with the
|
|
|
|
+``$serializer->setGroups(array("Foo"))`` method. Both values always have to be
|
|
|
|
+an array.
|
|
|
|
+
|
|
|
|
+.. code-block :: php
|
|
|
|
+
|
|
|
|
+ /** @Groups({"Foo","Bar"}) */
|
|
|
|
+
|
|
@AccessType
|
|
@AccessType
|
|
~~~~~~~~~~~
|
|
~~~~~~~~~~~
|
|
This annotation can be defined on a property, or a class to specify in which way
|
|
This annotation can be defined on a property, or a class to specify in which way
|