Details
Description
The bug is in ORM\Tools\Setup.php in the function registerAutoloadDirectory($directory), specificially the following line:
$loader = new ClassLoader("Doctrine");
Which should actually be:
$loader = new ClassLoader("Doctrine", $directory);
As it stands the actual directory location is not being passed to the ClassLoader while attempting to autoload the Doctrine from that specified directory. Under certain circumstances this causes loading to completely fail (although in cases where this function is being called from a parent directory to Doctrine this seems to go unnoticed - perhaps why this was not picked up sooner?)