All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Changed namespace from
Prozorov\Repositories
toRepositories\Core
- The
$id
parameter ingetById
andgetByIdOrFail
of repository contract now can be of any type - Added
insert
method to the repository contract and tests for it - Added
insertWithTransaction
method to the repository contract and tests for it - Added ArrayRepository ID field validation
- Transactions are described in Repository contract
- Added support for transactions in ArrayRepository
- DuckTyper helper is added
- Result and Query objects are removed from Repository contract because I decided to make this contract more general here
- Result object is removed becouse I decided that is has nothing to do with repository responsibility
- HasMeta trait is removed because it has no meaning without Result object