Skip to content

ipl-orm v0.4.0

Compare
Choose a tag to compare
@nilmerg nilmerg released this 15 Jun 12:30
v0.4.0

Breaking Changes

  • Dropped support for PHP 5.6, 7.0 and 7.1 #35
  • Class Resolver now requires a Query as first constructor argument #38
  • Class Hydrator now requires a Query as first constructor argument #49
  • To-one relations are now not immediately fetched upon property access (lazy loading) #55
  • Custom aliases that match fully qualified names are now hydrated to their respective relation model, previously they were registered on the base model #52
  • Automatic group by statements are not provided anymore by implementing Model::getAggregateColumns() #46
  • Multiple calls to Query::columns() are not additive anymore. Every call overrides the current set columns instead #62
  • Method Query::setColumns() has been removed. Use Query::columns() instead #62
  • Interface RewriteBehavior has been split into two separate interfaces #63
  • Models don't provide meta data anymore. They provide column definitions instead #64

Changes

  • Support for PHP 8.1 #35
  • Added new factory method ResultSet::fromQuery() #36
  • Behaviors can now be QueryAware #42
  • Instances of Query now emit the event ON_SELECT_ASSEMBLED #47
  • Added new expression type AliasedExpression #50
  • Support for ipl\Stdlib\Filter\Like and ipl\Stdlib\Filter\Unlike #61
  • Instances of Model can now define custom defaults for properties #51
  • Added first implementation of behavior PropertyBehavior: ipl\Orm\Behavior\Binary #60
  • Selecting or ordering by alias works now, also applies to AliasedExpressions of course #56
  • Added new method Query::withColumns() which allows to select specific columns without disabling eager loading of relations #62
  • Models can now provide column definitions which can be accessed in a more OOP manner than before #64

Fixes

  • If using a populated model to create a sub query, the conditions to link it with the parent query now use persist behaviors correctly #43
  • Rewrite behaviors of relations are now respected #53