Closed
Description
Symfony version(s) affected
6.1.5
Description
As already described in #47356 I looked further into the problem and found out that it's about the user entity. With an empty project the impersonation and exiting works like expected. but with the fields of the user entity extended the error occurs also in the demo project.
How to reproduce
https://github.com/simonsolutions/impersonatebug
connect to database
initiale app (composer)
load fixtures (add users to database)
login to conference controller with "admin" and "start1"
impersonate user1
exit impersonation and then the error appears
Possible Solution
No response
Additional Context
No response