From 35a152318ea086cbc9224ed92461666fac568f7c Mon Sep 17 00:00:00 2001 From: Benjamin Eberlei Date: Sun, 13 Feb 2011 10:02:18 +0100 Subject: [PATCH] DDC-1030 - Fix Static Reflection with namespace levels deeper than one. --- lib/Doctrine/ORM/Tools/EntityGenerator.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Doctrine/ORM/Tools/EntityGenerator.php b/lib/Doctrine/ORM/Tools/EntityGenerator.php index 019399fcd..182dd441b 100644 --- a/lib/Doctrine/ORM/Tools/EntityGenerator.php +++ b/lib/Doctrine/ORM/Tools/EntityGenerator.php @@ -412,6 +412,8 @@ public function () $token = $tokens[$i]; if ($token[0] == T_NAMESPACE) { $lastSeenNamespace = $tokens[$i+2][1] . "\\"; + } else if ($token[0] == T_NS_SEPARATOR) { + $lastSeenNamespace .= $tokens[$i+1][1] . "\\"; } else if ($token[0] == T_CLASS) { $lastSeenClass = $lastSeenNamespace . $tokens[$i+2][1]; $this->_staticReflection[$lastSeenClass]['properties'] = array();