Browse Source

Merge pull request #5786 from jadb/3.0-fix-paginate-model-loading

Fix paginate model loading
Mark Story 11 years ago
parent
commit
3548ddab80
1 changed files with 1 additions and 1 deletions
  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;
             }
         }