Skip to content

0.5.0

Latest
Compare
Choose a tag to compare
@hexus hexus released this 24 Jun 11:57
· 82 commits to v0.6 since this release

SQLite support, relation attachment and detachment for ORM\Records, delegate Service\Containers, other bug fixes and clean up.

General

  • Improved readme files for each component
  • Cleaned up trailing whitespace and unused imports

Database

  • Implemented SQLite adapter
  • Implemented SQL Server ANSI offset (#49)
  • Fixed a bug when using null in array filter values
  • Fixed use of deprecated MYSQL_ASSOC constant
  • Implemented SQLite support for Database\Factory

ORM

  • Ensured that records loaded through find() and findOrNew() are reinstated (no
    changed attributes)
  • Updated Record::save() to skip saving if no data has changed
  • Implemented Record::attach() and Record::detach(), which are now used for
    magic setters on relation attributes, instead of saving (associating) them
    immediately (#46)
  • Improved belongs-to consistency issues
  • Added JsonSerializable interface to Model
  • Updated Record::call() to be more strict; avoids unexpected behavior such
    as any method call on a Record being valid
  • Implemented Relation::query() support - allows opening relation queries
    from a relation object
  • Fixed an issue when associating has-many relations with empty ID values

Storage

  • Renamed Queryable::execute() and Query\Builder::execute() methods to run() (#51)
  • Improved in-memory storage when updating and deleting
  • Added @mixin Query annotation for Storage\Query\Builder (#53)

Service

  • Fixed strict standards issue with Facade
  • Implemented delegate service containers