daylightstudio/FUEL-CMS — Issue #128: MY_Model Abstract Class issue
Author: rsilvestre
Created: 2012-03-05 13:57:23+00:00
State: open

I have an issue with MY_Model Abstract Class.

Here is my model :

class CallUsers_model extends MY_Model {

function __construct()
{
parent::__construct('callUsers');
}
}

Here is my controller :

...
$this->load->model('callUsers_model');

$where['select'] = 'firstname';
$where['where'] = array('id' => 1);
$where['order_by'] = 'firstname asc';
$where['limit'] = 10;

$query = $this->callUsers_model->query($where);
$results = $query->result();

Fatal error: Uncaught exception 'Exception' with message 'Method fill does not exist.' in /Users/michaelsilvestre/git/hightech5/fuel/application/core/MY_Model.php on line 2322

( ! ) Exception: Method fill does not exist. in /Users/michaelsilvestre/git/hightech5/fuel/application/core/MY_Model.php on line 2322

Do the same (normal) with all variation of method. Find(), Get, Find_one(),...

--------------------------------------------------------------------
PHP Version 5.3.6
Mysql 5.5.9
Apache 20051115
MAMP 2.0.5
SYSTEM : MAC OSX 10.7.2