Skip to content

v0.11

Choose a tag to compare

@aaemnnosttv aaemnnosttv released this 18 Aug 13:17
· 57 commits to master since this release

This release brings the following features and enhancements:

Added

  • User\Model
  • User\QueryBuilder
  • url methods on Post\Model & Term\Model
  • Term\Model->children()
  • Model::make() named constructor
  • objectAliases property, allowing for $model->aliasName == $model->object->targetProperty
  • Shorthand property aliases, Eg: $postModel->{name} == $postModel->object->post_{name} (opt-in via trait)

Changed

  • Hook callbacks now automatically return the first argument passed if nothing is returned.
  • ObjectMeta now has a fluent set(key, value) method.
  • Deprecated Post\Model::fromWpPost() and Term\Model::fromWpTerm() (use ::make() instead)
  • Simplified internals of Model->save(), ->delete() and ->refresh()