Skip to content

ipl-orm v0.5.0

Compare
Choose a tag to compare
@nilmerg nilmerg released this 22 Mar 08:56
· 55 commits to main since this release
v0.5.0

Breaking Changes

  • Instances of ipl\Orm\Contract\PropertyBehavior now raise ipl\Orm\Exception\ValueConversionException in method toDb(mixed, string, mixed) instead of UnexpectedValueException or InvalidArgumentException #88

Changes

  • Added method ipl\Orm\Query::withoutColumns(string|array) #99
  • Added class ipl\Orm\Behavior\MillisecondTimestamp #83
  • Added class ipl\Orm\Behavior\BoolCast #84
  • Models can now define a table alias. It may be used in references in addition to the table name. #82

Fixes

  • In case ipl\Orm\Relation\BelongsToMany::through(string) has never been called, a more descriptive error is thrown #90
  • ipl\Orm\Query::order(ipl\Sql\Select) now processes order by rules defined as instances of ipl\Sql\ExpressionInterface correctly #86
  • Models can now use relative column references in expressions #85
  • Selecting a column multiple times doesn't lead to duplicate references in the SELECT list anymore #79