Skip to content

DDC-830: Missing prefix \ to switch to global space in Tools/EntityGenerator #5350

Closed
doctrinebot opened this Issue Oct 7, 2010 · 2 comments

2 participants

@doctrinebot

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();
}
@doctrinebot

Comment created by @beberlei:

Fixed.

@doctrinebot

Issue was closed with resolution "Fixed"

@beberlei beberlei was assigned by doctrinebot Dec 6, 2015
@doctrinebot doctrinebot added this to the 2.0-RC1 milestone Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
@doctrinebot doctrinebot added the Bug label Dec 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.