You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Doctrine entities are sometimes wrapped in Proxy objects, and the instantiateObject method does not handle them transparently.
For example, an entity MyBundle\Entity\User might have a class name of Proxies\__CG__\MyBundle\Entity\User. When this occurs, the instantiateObject method does not detect that it is in fact the same entity, and attempts to create a new one.
The Security component uses ClassUtils::getRealClass() to get around this issue.