v0.11
This release brings the following features and enhancements:
Added
User\ModelUser\QueryBuilderurlmethods onPost\Model&Term\ModelTerm\Model->children()Model::make()named constructorobjectAliasesproperty, allowing for$model->aliasName == $model->object->targetProperty- Shorthand property aliases, Eg:
$postModel->{name} == $postModel->object->post_{name}(opt-in via trait)
Changed
Hookcallbacks now automatically return the first argument passed if nothing is returned.ObjectMetanow has a fluentset(key, value)method.- Deprecated
Post\Model::fromWpPost()andTerm\Model::fromWpTerm()(use::make()instead) - Simplified internals of
Model->save(),->delete()and->refresh()