Details
Description
If I use EntityGenerator with class to extend 'Extension\\Doctrine\\ORM\\ActiveEntity
ActiveEntity' in generated files I have this use statement:
use Extension\Doctrine\ORM\ActiveEntity;
class XXX extends ActiveEntity
and php ends with error. I think the use statement should look like:
use Extension\Doctrine\ORM\ActiveEntity\ActiveEntity;
class XXX extends ActiveEntity
After I repaired this function it works ok:
private function _getClassToExtendNamespace() { $refl = new \ReflectionClass($this->_getClassToExtend()); return $refl->getNamespaceName() ? $refl->getNamespaceName():$refl->getShortName(); }
to
return $refl->getNamespaceName() ? $refl->getNamespaceName().'\\'.$refl->getShortName():$refl->getShortName();
I'am not sure if it is bug or I am doing something wrong.
fixed formating