How to use the serializer for saving snapshot of complex entities
I’m working on a Symfony project where I have an entity called Richiesta that contains many nested relationships, some of which are OneToMany, ManyToOne, and ManyToMany associations. At a certain point in the process, I need to serialize all the data from the Richiesta entity (including its related entities) and save it as JSON in