euromark 13 年之前
父节点
当前提交
608abf1152
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      Console/Command/CodeShell.php

+ 3 - 1
Console/Command/CodeShell.php

@@ -143,7 +143,9 @@ class CodeShell extends AppShell {
 					$missingClassName = substr($missingClass, 0, strlen($missingClass) - strlen($class));
 				}
 				$objects = App::objects(($this->params['plugin'] ? $this->params['plugin'].'.' : '') . $class);
-				if ($location = App::location($missingClass)) {
+				if ($missingClassName == 'ModelBehavior') {
+					$type = 'Model';
+				} elseif ($location = App::location($missingClass)) {
 					$type = $location;
 					echo(returns($type));
 				} elseif (in_array($missingClass, $objects)) {