api-platform icon indicating copy to clipboard operation
api-platform copied to clipboard

How to get previous object in custom PUT operation controller before denormalization

Open ziiko10 opened this issue 6 years ago • 3 comments

Hello , i want to access previous object (stored in DB) in custom controller for PUT operation before denormalization , how can i

custom-controller

I want to get the old users of the manager and the new one's which are in the body of the request but i only get the new one's.

Any idea ? Thank you

ziiko10 avatar May 10 '20 16:05 ziiko10

Hi @AbbesBendaoud10 ,

How are you ?

I was facing the same problem this is my workaround : https://github.com/api-platform/api-platform/issues/1533

Thanks, Thomas.

thomasmoreaumaster avatar May 15 '20 10:05 thomasmoreaumaster

Hi dear @thomasmoreaumaster , thank you for your response, it is exactly what im doing but i don't know if it is the best solution.

ziiko10 avatar May 16 '20 10:05 ziiko10

Closing per #2987. Questions are best asked on GitHub Discussions or Stack Overflow (api-platform tag). The framework now lives at api-platform/core.

soyuka avatar May 19 '26 08:05 soyuka