|
|
@ -1393,12 +1393,11 @@ class ActiveRecord extends Model |
|
|
|
protected function getNamespacedClass($class) |
|
|
|
protected function getNamespacedClass($class) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (strpos($class, '\\') === false) { |
|
|
|
if (strpos($class, '\\') === false) { |
|
|
|
$primaryClass = get_class($this); |
|
|
|
$reflector = new \ReflectionClass($this); |
|
|
|
if (($pos = strrpos($primaryClass, '\\')) !== false) { |
|
|
|
return $reflector->getNamespaceName() . '\\' . $class; |
|
|
|
return substr($primaryClass, 0, $pos + 1) . $class; |
|
|
|
} else { |
|
|
|
} |
|
|
|
return $class; |
|
|
|
} |
|
|
|
} |
|
|
|
return $class; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|