CodeIgniter-MY_Model
CodeIgniter-MY_Model copied to clipboard
Base model (MY_Model) for the Codeigniter framework.
When I say, `$this->where('user_id', $some_value) ->update($update_data);` it is not problem until we $some_value is NULL. if $some_value is NULL normally if we don't use MY_Model it is not problem BUT...
I had a problem in a get_all with a relationship with 90 thousand records that the error happened: preg_match(): Compilation failed: regular expression is too large at offset) I studied...
Hi, I can not using where in relation with the limit because it always getting wrong data Is there any way to limit the main result by the relation data?
Hello, Sorry for my english, i'm french Error line 1427 $get_relate = (isset($relation[3]) && ($relation[3] === true())) ? true : false; it's $relation[3] === true not true()
Hi, sorry to bother you so much. I try to do the following: $aplicaciones2 = $ this->aplicaciones->where ('id_empresa' $ id_empresa)->with_tests (array ('with' => array( 'relation' => 'reactivos')))->get_all (); Relationships work...
 i want ask, maybe you have own helper ?
Hi, You are doing great work updating and maintaining the code. One thing that I currently need is not covered (as far as I know) or maybe I don't really...
hey avenir i am curious if it is possible to query articles_with_authors in your test controller with get_related = true in model pivot table but what happen if i have...
Works: $this->db->where('field IS NULL'); $result = $this->get_all(); DOES NOT WORK: $result = $this->where('field', NULL)->get_all(); $result = $this->where('field is', NULL)->get_all(); $result = $this->where('field IS NULL')->get_all(); $result = $this->get_all('field is null');
I've setup a model based on MY_Model to insert and update records from form. Inserting a new record works fine, but when I want to update a record, all field...