Releases: neat-php/object
Releases · neat-php/object
Added generics documentation
0.11.10
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.