From b11d788a43196927871dbb7df7b62eeab4ca75cd Mon Sep 17 00:00:00 2001 From: Priyadi Iman Nurcahyo <1102197+priyadi@users.noreply.github.com> Date: Sat, 6 Jul 2024 22:19:43 +0700 Subject: [PATCH] refactor(`Repository`): rename DX methods (#103) --- CHANGELOG.md | 1 + packages/collections-orm/src/Trait/RepositoryDxTrait.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2e0df4f..bc49c48 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ * feat: `$offset` parameter type widening for `ArrayAccess` methods * fix(`DefaultKeyTransformer`): only convert `Stringable` to string for now. * feat: add `UuidKeyTransformer` +* refactor(`Repository`): rename DX methods ## 0.7.0 diff --git a/packages/collections-orm/src/Trait/RepositoryDxTrait.php b/packages/collections-orm/src/Trait/RepositoryDxTrait.php index 20f1ca7..b0a10d5 100644 --- a/packages/collections-orm/src/Trait/RepositoryDxTrait.php +++ b/packages/collections-orm/src/Trait/RepositoryDxTrait.php @@ -58,7 +58,7 @@ final protected function getDoctrineRepository(): ObjectRepository&Selectable /** * @return CriteriaRecollection */ - final protected function createCriteriaCollection( + final protected function createCriteriaRecollection( Criteria $criteria, ?string $instanceId = null, ?string $indexBy = null, @@ -107,7 +107,7 @@ final protected function createCriteriaPageable( /** * @return QueryRecollection */ - final protected function createQueryCollection( + final protected function createQueryRecollection( QueryBuilder $queryBuilder, ?string $indexBy = null, ?CountStrategy $count = null,