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
I saw this while trying to figure out doctrine/DoctrineBundle#848. In this case, the autoloader was called to load a proxy for a mapped superclass. Since the file didn't exist, the $notFoundCallback was called to generate a proxy class. However, the ProxyFactory in ORM will skip over mapped superclasses and didn't create a class, but neither threw an exception.
I saw this while trying to figure out doctrine/DoctrineBundle#848. In this case, the autoloader was called to load a proxy for a mapped superclass. Since the file didn't exist, the
$notFoundCallback
was called to generate a proxy class. However, theProxyFactory
in ORM will skip over mapped superclasses and didn't create a class, but neither threw an exception.This causes an error because the autoloader wrongly assumes that the file will be present, at least after invoking the
$notFoundCallback
: https://github.com/doctrine/common/blob/master/lib/Doctrine/Common/Proxy/Autoloader.php#L74. However, this assumption is wrong and should probably be checked, with an exception being thrown if no file was generated/found.The text was updated successfully, but these errors were encountered: