Skip to content

Releases: parable-php/orm

Parable ORM 1.0.0

12 Mar 09:06
Compare
Choose a tag to compare

Version 1.0.0 is here!

Changes

  • Upgraded parable-php/di and parable-php/query to 1.0.0 as well.
  • Database now accepts constructor values for quicker setup. See Database::__construct() or check the README.
  • README updated to show how to actually connect to a database 🤦

Parable ORM 0.11.1

11 Mar 13:54
Compare
Choose a tag to compare
Parable ORM 0.11.1 Pre-release
Pre-release

0.11.1

  • Upgrade parable-php/query to 0.5.0.

Parable ORM 0.11.0

11 Mar 13:37
Compare
Choose a tag to compare
Parable ORM 0.11.0 Pre-release
Pre-release

0.11.0

  • Added static analysis through psalm.
  • Renamed Exception to OrmException for clarity.

Parable ORM 0.10.1

04 Feb 11:03
Compare
Choose a tag to compare
Parable ORM 0.10.1 Pre-release
Pre-release

Update dependencies

Parable ORM 0.10.0

20 Jan 19:37
Compare
Choose a tag to compare
Parable ORM 0.10.0 Pre-release
Pre-release

0.10.0

Changes

  • Dropped support for php7, php8 only from now on.

Parable ORM 0.9.2

20 Sep 09:35
Compare
Choose a tag to compare
Parable ORM 0.9.2 Pre-release
Pre-release

0.9.2

  • MySQL no longer requires a database name to establish a connection.

PARABLE ORM 0.9.1

27 Jul 09:05
Compare
Choose a tag to compare
PARABLE ORM 0.9.1 Pre-release
Pre-release

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

26 May 19:32
Compare
Choose a tag to compare
Parable ORM 0.9.0 Pre-release
Pre-release

0.9.0

  • Transaction has been added. Now you can start, commit or roll back a transaction very easily. Simply call Transaction::begin(), Transaction::commit() or Transaction::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 by withTransaction().
  • PropertyTypeDeterminer has been reworked, and now uses distinct Typer classes (such as IntegerPropertyTyper), implementing the PropertyTyper interface.
  • BooleanPropertyTyper has been added, which can turn 1 and 0 into true and false 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() and AbstractRepository::countBy() (that should not have caused issues).

Parable ORM 0.8.2

13 Apr 12:38
Compare
Choose a tag to compare
Parable ORM 0.8.2 Pre-release
Pre-release

0.8.2

Bugfixes

  • Fix bug in toArrayWithoutEmptyValues() where a value of 0 would be seen as an empty value.

Parable ORM 0.8.1

10 Mar 11:40
Compare
Choose a tag to compare
Parable ORM 0.8.1 Pre-release
Pre-release

0.8.1

Changes