浏览代码

Fix paginate model loading

Jad Bitar 11 年之前
父节点
当前提交
295b641d14
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Controller/Controller.php

+ 1 - 1
src/Controller/Controller.php

@@ -623,7 +623,7 @@ class Controller implements EventListenerInterface
                 if (empty($tableName)) {
                     continue;
                 }
-                $table = TableRegistry::get($tableName);
+                $table = $this->loadModel($tableName);
                 break;
             }
         }