codeigniter-base-model
codeigniter-base-model copied to clipboard
⛔️DEPRECATED CodeIgniter base CRUD model to remove repetition and increase productivity
... so the function values will match the corresponding queries.
By using the scope skip_observers() triggering of all the attached/registered observers can be disabled. See https://github.com/jamierumbelow/codeigniter-base-model/issues/113
I have both a `$before_create` and `$before_update`. Sometimes I want to update a row without touching those triggers. I couldn't see a way to do it with anything already built...
Without a conditional to serialize, then on update a column is created (empty), serialized, and overrides previously stored data.
Proposed fix for Issue #150 (Support for DBPrefix)
I was looking at doing something like this: - town - county - country town belongs to county, which belongs to country doing town_model->with('county')->with('country)->get(xx) it only gives me the direct...
I have a MVC architecture, directories are like this: - codeigniter application folder - controllers - config - ... - modules (the MVC) - module_one - controllers - models -...
I'm currently working with a DB schema where the DBA wants a time-stamp when a record is deleted. If the value of 'deleted' is NULL, the record is considered live....
Currently if you have to pull **n** records with a relation to some other object that would result in **n+1** queries to the database. With eager loading of relations you...
The hardcoded '_model' suffix used in relate() enforces us to always use this suffix in our models; I made it configurable to have more freedom.