Skip to content

Releases: oscarotero/simple-crud

3.0

14 Mar 19:36
Compare
Choose a tag to compare
3.0
  • Library rewritten to be compatible with more databases
  • The Manager class is now the Adapter
  • Mysql and Sqlite adapters
  • Improved code quality, PSR-2 compilance

2.1.1

20 Feb 21:35
Compare
Choose a tag to compare
  • Ensure all values are defined in the Row constructor because can be needed in the dataToDatabase method

2.1.0

19 Feb 23:22
Compare
Choose a tag to compare
  • RowCollection::load loads only one entity each time and have the same arguments than selectBy
  • Removed Row::load
  • Improvements in Row::save()
  • Removed Row::empyChanges()
  • Removed RowCollection::isCollection() and Row::isCollection()
  • Added magic method Row::__call() to execute, for example $post->getComments()
  • Removed $changedFields argument in insert because it's useless
  • The join argument in select/selectBy only executes real joins
  • Throw exceptions on some circunstances

2.0.2

16 Feb 17:39
Compare
Choose a tag to compare
  • Fixed a bug on select renamed fields
  • The method Row::reload() removes all values before reload, not only the fields.

2.0.1

15 Feb 18:04
Compare
Choose a tag to compare

Modified data in dataToDatabase wasn't saved in database. Fixed this.

2.0.0

15 Feb 14:38
Compare
Choose a tag to compare
  • New SimpleCrud\Fields\* classes to transform the data from/to mysql data types (for example datetime, date, set, etc)

A lot of changes in the Entity class, the most important:

  • For clarity, fetch() has been divided in two functions: fetchOne and fetchAll
  • Removed getFields and added getFieldsNames
  • Refactored the insert/update functions for security and speed

1.8.2

12 Feb 22:17
Compare
Choose a tag to compare
  • RowCollection::filter accepts an array of possible values

1.8.1

12 Feb 22:01
Compare
Choose a tag to compare
  • Fixed values transform for SET/ENUM fields

1.8.0

11 Feb 09:31
Compare
Choose a tag to compare

Improvements in RowCollection::get() method. Now accepts also integers that returns an array_slice:

$rows->get(0, true); //Returns the first argument
$rows->get(10); //Returns an array with all arguments starting from index 10 to the end
$rows->get(2, 4); //Returns an array of 4 arguments starting from index 2

1.7.0

27 Jan 23:27
Compare
Choose a tag to compare
  • Improvements on insert/update. Only saves changed values by default
  • New method Row::reload() that discard changes and load the data again from database