Error!

Fuel\Core\Fuel_Exception [ Error ]: No properties found in model.

PKGPATH/orm/classes/query.php @ line 159

154            {
155                $fields array_keys(call_user_func($this->model.'::properties'));
156
157                if (empty($fields))
158                {
159                    throw new \Fuel_Exception('No properties found in model.');
160                }
161                foreach ($fields as $field)
162                {
163                    $this->select($field);
164                }

Backtrace

  1. PKGPATH/orm/classes/query.php @ line 788
    783     * @return  array
    784     */
    785    public function get()
    786    {
    787        // Get the columns
    788        $columns $this->select();
    789
    790        // Start building the query
    791        $select $columns;
    792        if ($this->use_subquery())
    793        {
    
  2. PKGPATH/orm/classes/query.php @ line 886
    881        // get current limit and save it while fetching the first result
    882        $limit $this->limit;
    883        $this->limit 1;
    884
    885        // get the result using normal find
    886        $result $this->get();
    887
    888        // put back the old limit
    889        $this->limit $limit;
    890
    891        return $result reset($result) : null;
    
  3. PKGPATH/orm/classes/model.php @ line 354
    349            foreach(static::primary_key() as $pk)
    350            {
    351                $query->order_by($pk$id == 'first' 'ASC' 'DESC');
    352            }
    353
    354            return $query->get_one();
    355        }
    356        // Return specific request row by ID
    357        else
    358        {
    359            $cache_pk $where = array();
    
  4. PKGPATH/orm/classes/model.php @ line 497
    492            return static::count($options);
    493        }
    494
    495        else
    496        {
    497            return static::find($find_type$options);
    498        }
    499
    500        // min_...($options)
    501        // max_...($options)
    502    }
    
  5. APPPATH/classes/controller/frontend/movie.php @ line 337
    332            ));
    333        }
    334        else {
    335            $this->_view->set_filename('frontend/movie/listing');
    336            
    337            $this->_view->language    Model_Movie_Language::find_by_safe($language);
    338            
    339            if(is_null($this->_view->language)) {
    340                Request::show_404();
    341            }
    342        
    
  6. APPPATH/classes/controller/frontend/movie.php @ line 337
    332            ));
    333        }
    334        else {
    335            $this->_view->set_filename('frontend/movie/listing');
    336            
    337            $this->_view->language    Model_Movie_Language::find_by_safe($language);
    338            
    339            if(is_null($this->_view->language)) {
    340                Request::show_404();
    341            }
    342        
    
  7. COREPATH/classes/request.php @ line 429
    424                logger(Fuel::L_INFO'Calling '.$class.'::before'__METHOD__);
    425                $controller->before();
    426            }
    427
    428            logger(Fuel::L_INFO'Calling '.$class.'::'.$method__METHOD__);
    429            call_user_func_array(array($controller$method), $this->method_params);
    430
    431            // Call the after method if it exists
    432            if (method_exists($controller'after'))
    433            {
    434                logger(Fuel::L_INFO'Calling '.$class.'::after'__METHOD__);
    
  8. DOCROOT/index.php @ line 43
    38
    39// Boot the app
    40require_once APPPATH.'bootstrap.php';
    41
    42// Generate the request, execute it and send the output.
    43$response Request::factory()->execute()->response();
    44
    45// This will add the execution time and memory usage to the output.
    46// Comment this out if you don't use it.
    47$bm Profiler::app_total();
    48$response->body(str_replace(array('{exec_time}''{mem_usage}'), array(round($bm[0], 4), round($bm[1] / pow(10242), 3)), $response->body()));