Releases: krzysztof-gzocha/searcher
Releases · krzysztof-gzocha/searcher
AbstractORMCriteriaBuilder should allow left joins
3.4.1 AbstractORMCriteriaBuilder should allow left joins
Supporting only PHP 7
- Dropped support for PHP 5
- Small fixes in PHPDocs
- Upgrade PHPUnit in require-dev
- Make use of strict_types
AbstractCollection and improved ChainSearcher
- Common AbstractCollection
- Improved ChainSearcher
- Removed
CellInterface::$name
as it should be parameter of theCellCollection
, notCell
itself - Added Style CI constraint to all pull requests as required
- More strict Scrutinizer checks
- Updated documentation
- Smaller improvements
New features and improvements
- Common AbstractCollection
- Improved ChainSearcher
- Smaller improvements
- Removed
CellInterface::$name
as it should be parameter of theCellCollection
, notCell
itself
Removed CachedQueryBuilderSearchingContext
Configuration of QueryBuilder of any SearchingContext should be done outside of the searcher library, so CachedQueryBuilderSearchingContext
was removed.
Small optimizations
- Improved Searcher::searchForModel
- CriteriaBuilderCollection::getCriteriaBuildersForContext will return new collection instead of an array
- CriteriaCollection::getApplicableCriteria will return new collection instead of an array
Improving unit tests
All unit tests were improved to achieve 100% code coverage in unit tests and 100% mutation score indicator
Improvements
- All Criteria can have it's values injected by constructor
- Unit tests have been improved with the help of humbug library
- Minor changes in some criteria's
shouldBeApplied
method
Introducing AlwaysAppliedCriteria
Introducing AlwaysAppliedCriteria which can help to create CriteriaBuilder that should always be applied, regardless other criteria - like selecting object only in proper status.
Passing previous criteria to chain transformer
Before transformer was not able to pass forward criteria that was used before.
Now chain searcher will pass criteria alongside with the results.