Releases: MiraFramework/models
Releases · MiraFramework/models
v2.3.7
Change Log
- If
cache()
doesn't have a parameter passed then it will default to 10 years. - Whenever a model is saved, it will clear the cache. This is helpful when you can simply cache a table until it's actually updated. In some instances, models simply need to be cached until they are updated, no need to momentarily retrieve from the database if it's never been updated. This technically decreases the fetching of the cache but increases the reliability of the data.
- Found and fixed a bug where the model would make a new database connection on every call.
- Removed Sanity Text
v2.3.4
Change Log
- fixed foreign key accession for testing
- pointed version to the right branch
v2.3.6
Change Log
- Removed sanity text
v2.3.3
Change Log
- added a class property to the unset of the get class create variables method.
v2.3.2
Change Log
- When no results are returned,
getCall()
method now returns empty array. Good for foreach loops
v2.3.1
Change Log
- Removed code from the constructor to increase performance
- fixed how the code creates new instances during
all()
andfilter()
methods
v2.3.0
Change Log
- all models now return instances of the model class and not a normal stdClass.
v2.2.2
Change Log
- Removed sanity text
- added an order method.
Now can do something like:
$model->order('id')->all()
or
$model->order('-id')->all()
v2.2.1
Change Log
- Able to set columns to null by setting to class property to null:
$model->author = 'NULL'
will make the record NULL in the database
v2.2.0
Change Log
- removed confirm from delete method
- added shortcut for delete. Now can delete by
$model->delete(1)
or$model->find(1)->delete()