I set up a parameter as array, as described in http://jmsyst.com/libs/serializer/master/reference/annotations
class QuestionAnswer
{
/**
* @JMS\Type("ArrayCollection<Rest\Bundle\Entity\Fixture\QuestionOptions>")
* @Groups({"QuestionAnswer"})
*/
public $question_options_array ;
}
and define some options in another class
class QuestionOptions
{
/**
* @JMS\Type("integer")
* @Groups({"get_option"})
*/
public $question_option_id ;
/**
* @JMS\Type("string")
* @Groups({"post_option"})
*/
public $question_option_description;
}
In @ApiDoc I define
* input={
* "class" = "Rest\BeautyBundle\Entity\Fixture\ProfileQuestionAnswer",
* "groups"={"QuestionAnswer", "get_option"},
* },
Before updating it works well. But after composer update
only the "QuestionAnswer" group name works and it shows all properties from QuestionOptions class.
How can I submit properties in the array the way it was before the update?