Answer the question
In order to leave comments, you need to log in
Symfony and Redis why is the persisted object not equal to the one retrieved from the cache?
Good afternoon.
The project is written in symfony. This is an Api, jms/serializer-bundle
is used for serialization. I use the Symfony/Cache component to work with Redis (RedisAdapter).
I save an array of objects. After extracting and returning to response I get an error
{"code":500,"message":"Warning: Invalid argument supplied for foreach()"}
Answer the question
In order to leave comments, you need to log in
Turn on the warning interceptor before serialization and catch these errors. Where you catch them, you will have enough information to understand what happened. And you won’t make a senseless save.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question