codeigniter-base-model icon indicating copy to clipboard operation
codeigniter-base-model copied to clipboard

Fatal error: where() is not defined

Open dwightwatson opened this issue 13 years ago • 3 comments

Recent changes appear to have broken some functionality. My app cannot run update_by or delete_by, I get an error that the method where() does not exist on _database.

From what I can tell, the call $this->_database = $this->load->database() is returning NULL. A previous version of this model is working fine in it's place.

dwightwatson avatar Feb 22 '13 07:02 dwightwatson

I was starting to work on a new application and I have noticed the same thing, the last merge has broken the class.

massimilianomarini avatar Feb 23 '13 14:02 massimilianomarini

Line 873

Change:

$this->load->database();

To:

$this->load->database('', TRUE);

Jeckerson avatar Feb 23 '13 19:02 Jeckerson

God damn it, sorry for fail commits, I'm new one in Github :)

Jeckerson avatar Feb 23 '13 20:02 Jeckerson