Question : symfony convert entity to array
Answered by : nadim-al-abdou
$entityAsArray = $this->serializer->normalize($entity, null);
Source : https://stackoverflow.com/questions/21935593/convert-entity-to-array-in-symfony | Last Update : Mon, 05 Jul 21