0.14.0
This release includes changes to some interfaces #45. This is a breaking change if you use these interfaces in your own code.
Added
- Added
OneRelationInterface
andManyRelationInterface
to differentiate between singular and plural relations. - Added documentation about
ItemDocumentBuilder
,ItemHydrator
andRepository
classes.
Changed
- Moved
setType
andgetType
fromRelationInterface
to a separate interface;TypedRelationInterface
. - Added type hints to
ItemInterface::setRelation
. - Added return type hint to
Item::hasAttribute
.
Removed
- Removed
RelationInterface
in favor ofOneRelationInterface
andManyRelationInterface
. - Removed
setId
andgetId
fromHasOneRelation
andMorphToRelation
. These operations should be performed on the included item. - Removed
setType
andgetType
from morph relations. Use regular relations if you want to set the type.