Fixing "Allowed memory size exhausted" in Symfony: When Doctrine Metadata Crashes Your Serializer

The Symfony serializer tries to (de)serialize Doctrine s Metadata and crashes in some cases. Read here when and how to fix.