Symfony convertit l'entité en tableau
$entityAsArray = $this->serializer->normalize($entity, null);
Sleepy Squirrel
$entityAsArray = $this->serializer->normalize($entity, null);