Releases: oscarotero/simple-crud
Releases · oscarotero/simple-crud
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
- Ensure all values are defined in the Row constructor because can be needed in the dataToDatabase method
2.1.0
- 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
- Fixed a bug on select renamed fields
- The method Row::reload() removes all values before reload, not only the fields.
2.0.1
Modified data in dataToDatabase wasn't saved in database. Fixed this.
2.0.0
- 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
- RowCollection::filter accepts an array of possible values
1.8.1
- Fixed values transform for SET/ENUM fields
1.8.0
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
- Improvements on insert/update. Only saves changed values by default
- New method Row::reload() that discard changes and load the data again from database