Lean Mapper is a tiny ORM based on powerful Dibi database abstraction library for PHP.
See www.leanmapper.com for more information, usage examples and documentation.
MIT
Copyright (c) 2013 Vojtěch Kohout (aka Tharos)
Lean Mapper is a tiny ORM based on powerful Dibi database abstraction library for PHP.
composer require tharos/leanmapper
Lean Mapper is a tiny ORM based on powerful Dibi database abstraction library for PHP.
See www.leanmapper.com for more information, usage examples and documentation.
MIT
Copyright (c) 2013 Vojtěch Kohout (aka Tharos)
m:hasOne
property (#161)m:enum
set()
& __set()
check value type (BC BREAK)$repository->onUnexists[]
) throws exception (BC BREAK)$masks
(uses value from Dibi) (BC BREAK)cleanReferencing
/cleanReferenced
with FilteringResult
nette/di ^3.0
$relationshipName
(see #77)$defaultEntityNamespace
is changed by constructor (BC BREAK)declare(strict_types=1)
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)
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 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)
tests:
Complete diff
Entity:
DI:
Others:
NOTE: known bug: #85 still unresolved!