Karson 8 years ago
parent
commit
ee866c0c97
1 changed files with 3 additions and 2 deletions
  1. 3 2
      application/admin/controller/example/Relationmodel.php

+ 3 - 2
application/admin/controller/example/Relationmodel.php

@@ -26,16 +26,17 @@ class Relationmodel extends Backend
      */
     public function index()
     {
+        $this->relationSearch = true;
         if ($this->request->isAjax())
         {
             list($where, $sort, $order, $offset, $limit) = $this->buildparams();
             $total = $this->model
-                    ->with("Admin")
+                    ->with("admin")
                     ->where($where)
                     ->order($sort, $order)
                     ->count();
             $list = $this->model
-                    ->with("Admin")
+                    ->with("admin")
                     ->where($where)
                     ->order($sort, $order)
                     ->limit($offset, $limit)