Model, User and DB improvements
v0.9.0
- Added all() and find() methods to Model class. Methods get() and getById() are now marked as deprecated.
- Added findOrFail() method to Model that throws a NotFoundException when the entity is not found.
- Added AppError::clearLast($n) method that deletes the last N error messages in the database.
- Now is possible to indicate JSON fields in models with the $jsonFields array property. The fields mentioned in the list will be automatically converted to array when recovering the model.
- Fixed a bug in DB::selectOne() returning an stdClass instead of an entity of the desired type.
- Fixed a bug in DB::saneate() converting strings in empty strings.
- Fixed a bug in DB::trim() not trimming all spaces.
- New logo.
- Fixed RetroTemplate footer showing too big images.
- New test database example.
- New test files to use as example.
- Added PHPDoc to Model, User, DB and some other classes.