Releases: neat-php/object
Releases · neat-php/object
0.12.0
Added
- $key parameter to ReferenceFactory methods (breaks backward compatibility).
- Type hints (may break backward compatibility when you extend Neat Object classes, which is inherently bad).
- Generics documentation.
Changed
- Improved Relations efficiency by caching relations and references instead of builders.
Removed
- ReferenceBuilder setRemoteKeyString().
- setJunctionTableRemoteForeignKey() and setJunctionTableLocalForeignKey().
- build*() methods in the Relations trait and ReferenceFactory trait.
- Passing a Property instance to setLocalKey and setRemoteKey.
- RelationBuilder (the deprecated referenceFactory method was its only reason of existence)
Added generics documentation
0.11.13 Release v0.11.13.
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.