Releases: parable-php/orm
Releases · parable-php/orm
Parable ORM 1.0.0
Version 1.0.0 is here!
Changes
- Upgraded
parable-php/di
andparable-php/query
to 1.0.0 as well. Database
now accepts constructor values for quicker setup. SeeDatabase::__construct()
or check the README.README
updated to show how to actually connect to a database 🤦
Parable ORM 0.11.1
0.11.1
- Upgrade
parable-php/query
to 0.5.0.
Parable ORM 0.11.0
0.11.0
- Added static analysis through psalm.
- Renamed
Exception
toOrmException
for clarity.
Parable ORM 0.10.1
Update dependencies
Parable ORM 0.10.0
0.10.0
Changes
- Dropped support for php7, php8 only from now on.
Parable ORM 0.9.2
0.9.2
- MySQL no longer requires a database name to establish a connection.
PARABLE ORM 0.9.1
0.9.1
- When using typed properties and trying to set a value of
0
, untyping it caused it to become a string value ('0'
). This would end up being seen as an 'empty' value and removed from the value set.
Parable ORM 0.9.0
0.9.0
Transaction
has been added. Now you can start, commit or roll back a transaction very easily. Simply callTransaction::begin()
,Transaction::commit()
orTransaction::rollback()
.- And to make it even easier, call
Transaction::withTransaction(callable $callable)
to have it all done automatically. Exceptions thrown are rethrown, and the return value of the callable is returned bywithTransaction()
. PropertyTypeDeterminer
has been reworked, and now uses distinctTyper
classes (such asIntegerPropertyTyper
), implementing thePropertyTyper
interface.BooleanPropertyTyper
has been added, which can turn1
and0
intotrue
andfalse
respectively.- Adding custom typers is easy, see
CustomPropertyTyper
in the tests. This way, you can transform from/to any object or value type to what the database can store, without having to care. Database::getLastQuery()
now returns the last query attempted to be performed, rather than the last successful.- Fixed wrong logic in
AbstractRepository::countAll()
andAbstractRepository::countBy()
(that should not have caused issues).
Parable ORM 0.8.2
0.8.2
Bugfixes
- Fix bug in
toArrayWithoutEmptyValues()
where a value of0
would be seen as an empty value.