Releases: parable-php/orm
Releases · parable-php/orm
Parable ORM 1.0.0
Version 1.0.0 is here!
Changes
- Upgraded
parable-php/diandparable-php/queryto 1.0.0 as well. Databasenow accepts constructor values for quicker setup. SeeDatabase::__construct()or check the README.READMEupdated to show how to actually connect to a database 🤦
Parable ORM 0.11.1
0.11.1
- Upgrade
parable-php/queryto 0.5.0.
Parable ORM 0.11.0
0.11.0
- Added static analysis through psalm.
- Renamed
ExceptiontoOrmExceptionfor 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
Transactionhas 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(). PropertyTypeDeterminerhas been reworked, and now uses distinctTyperclasses (such asIntegerPropertyTyper), implementing thePropertyTyperinterface.BooleanPropertyTyperhas been added, which can turn1and0intotrueandfalserespectively.- Adding custom typers is easy, see
CustomPropertyTyperin 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 of0would be seen as an empty value.