diff --git a/CHANGELOG-7.0.md b/CHANGELOG-7.0.md index 273bc4b..db4bccf 100644 --- a/CHANGELOG-7.0.md +++ b/CHANGELOG-7.0.md @@ -123,6 +123,21 @@ no observers are registered), and multi-connection safe. - Remove any `ORMSubject::getInstance()->clearObservers()` calls (typically in test suites) — bridges die with their executors, there is no global state to clear +### MapperFunctions removed + +The `MapperFunctions` class, deprecated since 6.0, is removed. Its constants only named the mapper +classes: use the classes directly. + +| Before | After | +|---|---| +| `MapperFunctions::STANDARD` | `StandardMapper::class` | +| `MapperFunctions::READ_ONLY` | `ReadOnlyMapper::class` | +| `MapperFunctions::UPDATE_BINARY_UUID` | `FormatUpdateUuidMapper::class` | +| `MapperFunctions::SELECT_BINARY_UUID` | `FormatSelectUuidMapper::class` | +| `MapperFunctions::NOW_UTC` | `NowUtcMapper::class` | + +All of them are in the `ByJG\MicroOrm\MapperFunctions` namespace. + ### Observer scope: global → per executor - Observers now fire for writes flowing through the `DatabaseExecutor` instance(s) of the repository where they were registered. Two repositories over different executors no longer diff --git a/docs/repository.md b/docs/repository.md index 126e2ab..c72b97e 100644 --- a/docs/repository.md +++ b/docs/repository.md @@ -134,7 +134,7 @@ use ByJG\AnyDataset\Core\IteratorFilter; use ByJG\AnyDataset\Core\Enum\Relation; $filter = new IteratorFilter(); -$filter->addRelation('name', Relation::Equal, 'John'); +$filter->and('name', Relation::Equal, 'John'); $result = $repository->getByFilter($filter); ``` diff --git a/src/MapperFunctions.php b/src/MapperFunctions.php deleted file mode 100644 index 01d20a4..0000000 --- a/src/MapperFunctions.php +++ /dev/null @@ -1,27 +0,0 @@ -