Skip to content

Releases: Tharos/LeanMapper

Version 4.0.3

02 May 09:37
Compare
Choose a tag to compare
  • fixed compatibility with PHP 8.1 (#163)

Version 4.0.2

02 May 09:36
Compare
Choose a tag to compare
  • fixed reading of NULL value from m:hasOne property (#161)

Version 4.0.1

02 May 09:35
Compare
Choose a tag to compare
  • fixed usage of FQN in m:enum

Version 4.0.0

02 May 09:33
Compare
Choose a tag to compare
  • added PHP 7.1 type hints (BC BREAK)
  • Mapper: added posibility to convert DB values from scalars to objects (support for Value Objects)
  • Entity: methods set() & __set() check value type (BC BREAK)
  • Repository: access to undefined property ($repository->onUnexists[]) throws exception (BC BREAK)
  • Fluent: changed value of static property $masks (uses value from Dibi) (BC BREAK)
  • Result: fixed usage of cleanReferencing/cleanReferenced with FilteringResult
  • Nette DI extension: fixed compatibility with nette/di ^3.0
  • IMapper: getRelationshipColumn() - added parameter $relationshipName (see #77)
  • DefaultMapper: $defaultEntityNamespace is changed by constructor (BC BREAK)
  • added declare(strict_types=1)

Version 3.5.0

02 May 09:17
Compare
Choose a tag to compare
  • added support for converting of Row values (backported from LM 4.x)

Released version 3.4.2

05 Jan 09:53
Compare
Choose a tag to compare
  • Nette DI extension: fixed compatibility with nette/robot-loader 3.0+ (#151)

Released version 3.4.1

14 May 13:15
Compare
Choose a tag to compare
  • Repository: createEntities() uses $table parameter correctly (#148, 4f4f9bf)
  • fixed coding style (#147, 6bcd65a)

Released version 3.4.0

16 Mar 08:11
Compare
Choose a tag to compare
  • Nette DI extension: file logger uses Dibi\Loggers\FileLogger (#145)

  • EntityReflection: added posibility to customize entity reflection via IEntityReflectionProvider (#141)

  • SQLite3: fixed $entity->removeFromX() for SQLite without option SQLITE_ENABLE_UPDATE_DELETE_LIMIT (#143)

  • Result: addToReferencing ignores duplicate values (#143)

  • Result: new self changed to new static (#140)

  • Entity: added support for implicit passThru (#137)

  • EntityReflection: improved performance (#132)

Released version 3.3.0

11 Aug 11:47
Compare
Choose a tag to compare
  • changed default column for m:hasOne, DefaultMapper uses property name in column name instead of table name (BC break, #77, #127)
  • belongsTo relationships are marked as real-only (#124, #62)
  • added m:hasMany(#inversed) (#125, #123)
  • added support for multiline annotations (#108, #29)

Released version 3.2.0

01 May 18:00
Compare
Choose a tag to compare
  • added support for nested brackets in flag values (for example m:default(array())) (#122)

  • combination of m:default and "equation syntax" ($property = value) throws exception (#122)

  • values in flag m:default are converted to correct datatype (#122)

  • bugfix - m:default wasn't marked as default value ($property->hasDefaultValue() was returning false) (#119)

  • fixed datatype changes in passThru setters (#117, #118)

  • fixed generating of complex SQL queries for UNION strategy (#109)

  • fixed bug when Lean Mapper was using setters and getters with visibility private & protected (#97)

  • fixed assign of null to nullable property with m:enum flag (#116)

  • PostgreSQL - fixed bug while calling of $entity->removeFromX() (#114)

  • improved detection of properties with duplicated name (#104)

  • added support for dash (-) in flag names (for example m:flag-name) (#107)

  • m:enum supports unprefixed constants (SomeClass::*) (#100)