Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions CHANGELOG-7.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/repository.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
```
Expand Down
27 changes: 0 additions & 27 deletions src/MapperFunctions.php

This file was deleted.

Loading