CodeIgniter-MY_Model icon indicating copy to clipboard operation
CodeIgniter-MY_Model copied to clipboard

Base model (MY_Model) for the Codeigniter framework.

Results 72 CodeIgniter-MY_Model issues
Sort by recently updated
recently updated
newest added

$this->post_m->with_user("fields:FirstName")->get_all() Output : [Microsoft][ODBC Driver 11 for SQL Server][SQL Server]The multi-part identifier "`tblUsers`.`UserId`" could not be bound. SELECT "`tblUsers`"."`UserId`", "`tblUsers`"."`FirstName`" FROM "tblUsers" WHERE "tblUsers"."UserId" IN(5, 5) AND tblUsers.DeletedAt IS NULL

hello im getting database error im trying to update where_id in array ``` UPDATE `brands` SET `status` = '1', `updated_at` = '2018-11-01 14:32:39' WHERE `brands`.`id` IN(Array) ``` This my controller...

How can we implement database transactions with this Model?Is there any implementation of it or we have to use traditional CI transactions.

hello, restore function doesn't return the number of affected rows any one has same problem as me ?

hello all, how can we use relation has many for delete and update for example i have a user which has many posts i want to make one query currently...

Is it possible to set up a 'has-many-pivot' relationship where the pivot table is mapping a relationship between records in the same table. In my case, I have a location_model...

I really appreciate the existence of this "model" library and recently tried and successfully integrated it in my Codeigniter 2 project. Maybe this issue is because I customized something or...

Hello, I was recently doing some tests regarding the model relationships and I noticed that when there is a Has Many Pivot relationship, the relationship key in the returning object...

Am trying to use from form method to insert multiple records. Most part of the fields are the same, except for some fields multiple values are accepted, each should be...

how to use `where_not_in"function` ? i have tried this `$this->model->where_not_in('name',$names)->get_all();` but i got an error? How to fix this or use this function.