Skip to content

Releases: MiraFramework/models

v2.3.7

24 Sep 14:47
Compare
Choose a tag to compare

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

21 Sep 01:48
Compare
Choose a tag to compare

Change Log

  • fixed foreign key accession for testing
  • pointed version to the right branch

v2.3.6

24 Sep 14:56
Compare
Choose a tag to compare

Change Log

  • Removed sanity text

v2.3.3

15 Sep 20:28
Compare
Choose a tag to compare
v2.3.3 Pre-release
Pre-release

Change Log

  • added a class property to the unset of the get class create variables method.

v2.3.2

15 Sep 17:40
Compare
Choose a tag to compare

Change Log

  • When no results are returned, getCall() method now returns empty array. Good for foreach loops

v2.3.1

15 Sep 17:24
Compare
Choose a tag to compare

Change Log

  • Removed code from the constructor to increase performance
  • fixed how the code creates new instances during all() and filter() methods

v2.3.0

15 Sep 15:44
Compare
Choose a tag to compare

Change Log

  • all models now return instances of the model class and not a normal stdClass.

v2.2.2

02 Sep 03:09
Compare
Choose a tag to compare

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

01 Sep 03:08
Compare
Choose a tag to compare

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

01 Sep 02:36
Compare
Choose a tag to compare

Change Log

  • removed confirm from delete method
  • added shortcut for delete. Now can delete by $model->delete(1) or $model->find(1)->delete()