Skip to content

Releases: woohoolabs/worm

0.7.4

23 Jun 08:04
0.7.4
186bd68
Compare
Choose a tag to compare

ADDED:

  • Support for PHP 8
  • Support for PHPUnit 9

0.7.3

06 Jan 19:18
0.7.3
1617173
Compare
Choose a tag to compare

ADDED:

  • RelationshipBuilderInterface::toRelationship() method in order to build relationships type safely

FIXED:

  • AbstractModel::getRelationships() return type
  • AbstractModel::belongsTo*() and AbstractModel::has*() return types

0.7.2

06 Jan 18:51
0.7.2
3e01b2b
Compare
Choose a tag to compare

FIXED:

  • AbstractModel::getRelationships() return type
  • AbstractModel::belongsTo*() and AbstractModel::has*() return types

0.7.1

04 Oct 13:07
0.7.1
c11c191
Compare
Choose a tag to compare

CHANGED:

  • Improved PSR-12 conformance
  • Added more type hints

0.7.0

21 Aug 12:13
0.7.0
345e73b
Compare
Choose a tag to compare
0.7.0 Pre-release
Pre-release

CHANGED:

  • Increased minimum PHP version requirement to 7.4 as property type declarations were added
  • Updated Larva to 0.7
  • Updated dev dependencies
  • Improved static analysis

0.6.0

21 Dec 10:26
0.6.0
e12df25
Compare
Choose a tag to compare
0.6.0 Pre-release
Pre-release

ADDED:

  • Support for building relationships

CHANGED:

  • Updated Larva to 0.6
  • Require PHPUnit 7.0 minimally to run tests
  • Apply the Woohoo Labs. Coding Standard

FIXED:

  • Cloning query builders

0.5.0

12 Sep 10:16
0.5.0
8fde16e
Compare
Choose a tag to compare
0.5.0 Pre-release
Pre-release

ADDED:

  • Support for composite primary keys
  • Worm::queryTruncate()

CHANGED:

  • Increased minimum PHP version requirement to 7.1
  • Updated minimum Larva version requirement to 0.5
  • ModelInterface::getPrimaryKey(): string was changed to ModelInterface::getPrimaryKeys(): array
  • Optimized retrieval of "belongs-to" relationships

FIXED:

  • Identities are added to the Identity Map in the correct order when fetching relationships of multiple levels
  • Handle null foreign keys properly

0.4.1

05 Mar 21:38
Compare
Choose a tag to compare
0.4.1 Pre-release
Pre-release

FIXED:

  • InsertQueryBuilder::multipleFields() caused exception

0.4.0

05 Mar 09:13
Compare
Choose a tag to compare
0.4.0 Pre-release
Pre-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

0.2.0

17 Feb 18:04
Compare
Choose a tag to compare
0.2.0 Pre-release
Pre-release

ADDED:

  • Identity Map
  • Support for retrieving multiple levels of relationships in the same query
  • Various methods to SelectQueryBuilder to reflect changes in Larva v0.3

CHANGED:

  • Updated minimum Larva version requirement to v0.3.0
  • Optimized retrieval of relationships

REMOVED:

  • ModelInterface::isAutoIncremented() method

FIXED:

  • Removed unnecessary joins when loading relationships
  • Many-to-Many relationships can reference fields other than primary keys