Skip to content

Releases: neat-php/object

Added generics documentation

27 Aug 15:03
Compare
Choose a tag to compare
0.11.13

Release v0.11.13.

0.11.10

03 Feb 11:31
Compare
Choose a tag to compare

Added

  • Events->triggerIfExists().
  • EventDispatcher->triggerIfExists().
  • Collection / Collectible documentation.
  • Relation $configure parameter of type callable(ReferenceBuilder).
  • Support for setting local and remote keys using property or column names as string.
  • Relation accessor methods by using the Accessors trait.
  • Policy accessorRelationMethod() to determine the relation targeted by calling an accessor.
  • Policy constructor parameter $pluralize.

Deprecated

  • ReferenceBuilder setRemoteKeyString() in favour of setRemoteKeyColumn().
  • setJunctionTableRemoteForeignKey() in favour of setJunctionTableRemoteKeyColumn().
  • setJunctionTableLocalForeignKey() in favour of setJunctionTableLocalKeyColumn().
  • build*() methods in the Relations trait and ReferenceFactory trait.
  • RelationBuilder->referenceFactory() in favour of $configuration parameter with Relations trait methods.
  • Passing a Property instance to setLocalKey and setRemoteKey is deprecated.

Changed

  • EventDispatcher->trigger() now throws if an event is not defined.

Fixed

  • Code coverage and brittle tests using the at() matcher.

0.11.5

10 Sep 10:21
Compare
Choose a tag to compare

Fixed

  • Docblock typehints, optional parameters and correct query-builder type.

Changed

  • Code-style optimizations.