I want to get attributes that have a serialization group and the group name.
i.e : I want to get bus_write from this attribute of my entity.
/**
* @var ArrayCollection<Driver> The driver of this bus.
* @ORM\ManyToMany(targetEntity="Driver", mappedBy="bus",cascade={"persist","remove","merge"})
* @ORM\JoinColumn(name="DRIVER_id", referencedColumnName="id")
* @Groups({"bus_write"})
*/
private $driver;