Skip to content

0.4.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@kocsismate kocsismate released this 05 Mar 09:13
· 113 commits to master since this release

ADDED:

  • Ability to persist entities via Worm::save() and Worm::delete()
  • Ability to persist related entities via Worm::saveRelatedEntity() and Worm::saveRelatedEntities()
  • Ability to define if a relationship has ON DELETE CASCADE constraint
  • IdentityMap::createObjectFromId() method
  • Worm::transaction() method
  • Worm::queryInsert(), Worm::queryUpdate() and Worm::queryDelete() methods
  • SelectQueryBuilder::fetchColumn() and SelectQueryBuilder::fetchCount() methods
  • SelectQueryBuilder::withAllTransitiveRelationships() method
  • getSql() and getParams() methods to query builders

CHANGED:

  • Renamed Worm::queryModel() to Worm::query()
  • A newly added ConditionBuilder class is used by query builders instead of its Larva counterpart
  • Updated minimum Larva version requirement to 0.4
  • Adapted interfaces to changes in Larva 0.4

FIXED:

  • WHERE conditions won't be erased when using SelectQueryBuilder::fetchById()
  • Fetching relationships of an empty list of entities won't raise syntax error
  • Retrieval of belongs-to relationships