From 1a21a3ed4245be922a630869d496e3bcb47cd753 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Mon, 17 Apr 2023 00:55:41 +0200 Subject: [PATCH] Do not use igbinary for cache, as it is causing excpetions with the doctrine proxies --- config/services.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/config/services.yaml b/config/services.yaml index b075684a..360963c3 100644 --- a/config/services.yaml +++ b/config/services.yaml @@ -244,6 +244,13 @@ services: tags: - {name: serializer.normalizer, priority: -9000} + # Disable igbinary serialization for cache even when igbinary is available, as it causes issues with the doctrine + # proxy objects (see https://github.com/igbinary/igbinary/issues/377 and https://github.com/igbinary/igbinary/issues/273) + cache.default_marshaller: + class: Symfony\Component\Cache\Marshaller\DefaultMarshaller + arguments: + $useIgbinarySerialize: false + #################################################################################################################### # Miscellaneous