|
@@ -20,8 +20,6 @@ namespace JMS\SerializerBundle\Metadata\Driver;
|
|
|
|
|
|
use JMS\SerializerBundle\Annotation\AccessorOrder;
|
|
|
|
|
|
-use JMS\SerializerBundle\Annotation\Groups;
|
|
|
-
|
|
|
use JMS\SerializerBundle\Annotation\Accessor;
|
|
|
|
|
|
use JMS\SerializerBundle\Annotation\AccessType;
|
|
@@ -38,7 +36,7 @@ use Metadata\MethodMetadata;
|
|
|
use Doctrine\Common\Annotations\Reader;
|
|
|
use JMS\SerializerBundle\Annotation\Type;
|
|
|
use JMS\SerializerBundle\Annotation\Exclude;
|
|
|
-use JMS\SerializerBundle\Annotation\Group;
|
|
|
+use JMS\SerializerBundle\Annotation\Groups;
|
|
|
use JMS\SerializerBundle\Annotation\Expose;
|
|
|
use JMS\SerializerBundle\Annotation\SerializedName;
|
|
|
use JMS\SerializerBundle\Annotation\Until;
|
|
@@ -100,8 +98,6 @@ class AnnotationDriver implements DriverInterface
|
|
|
$propertyMetadata->serializedName = $annot->name;
|
|
|
} else if ($annot instanceof Expose) {
|
|
|
$isExpose = true;
|
|
|
- } else if ($annot instanceof Group) {
|
|
|
- $propertyMetadata->group = $annot->group;
|
|
|
} else if ($annot instanceof Exclude) {
|
|
|
$isExclude = true;
|
|
|
} else if ($annot instanceof Type) {
|
|
@@ -124,7 +120,7 @@ class AnnotationDriver implements DriverInterface
|
|
|
} else if ($annot instanceof Accessor) {
|
|
|
$accessor = array($annot->getter, $annot->setter);
|
|
|
} else if ($annot instanceof Groups) {
|
|
|
- $propertyMetadata->setGroups($annot->names);
|
|
|
+ $propertyMetadata->groups = $annot->groups;
|
|
|
} else if ($annot instanceof Inline) {
|
|
|
$propertyMetadata->inline = true;
|
|
|
} else if ($annot instanceof ReadOnly) {
|