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. APPPATH/classes/controller/frontend/movie.php @ line 121
    116        $this->_view->set_filename('frontend/movie/watched');
    117
    118        $this->template->class    'movie movie-archive movie-year';
    119        $this->template->title    sprintf('Movie archive %d'$this->_year);
    120        
    121        $this->_view->viewings    Model_Movie_Viewing::find_by_year($this->_year)->get();
    122        $this->_view->subtitle    sprintf('%d archive'$this->_year);
    123        
    124        if(count($this->_view->viewings) === 0) {
    125            Request::show_404();
    126        }
    
  3. 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__);
    
  4. 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()));