private function _fetch_table()
{
if (!isset($this->table))
{
$this->table = $this->_get_table_name(get_class($this));
if (!$this->db->table_exists($this->table)) {
show_error(
sprintf('While trying to figure out the table name, couldn\'t find an existing table named: <strong>"%s"</strong>.<br />You can set the table name in your model by defining the protected variable <strong>$table</strong>.',$this->table),
500,
sprintf('Error trying to figure out table name for model "%s"',get_class($this))
);
}
}
$this->_set_table_fillable_protected();
return TRUE;
}
Yes, this results in an error if not done. The object $this->fillable remains null that is not allowed for example : (line 163)
if (c($field, $this->fillable)) {
i think
_set_table_fillable_protected
should always called, even when$this->table
not emptyhttps://github.com/avenirer/CodeIgniter-MY_Model/blob/7af1df0204b6741286fc6898c3f874b33767a6e2/core/MY_Model.php#L1930-L1932