Jira issue originally created by user hason:
If generated entity isn't in global namespace and extends class, name of extended class has to have prefix \ to switch to global namespace.
Fix: class Doctrine\ORM\Tools\EntityGenerator
private function _getClassToExtendName()
$refl = new \ReflectionClass($this->_getClassToExtend());
return '\\' . $refl->getName();
Comment created by @beberlei:
Issue was closed with resolution "Fixed"