Skip to content

Commit

Permalink
docs: Fix property metadata attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
kissifrot committed Jun 21, 2024
1 parent d993a89 commit 4967746
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]
### Fixed
- [GH#167](https://github.com/jolicode/automapper/pull/167) Fix property metadata attribute name in docs
- [GH#166](https://github.com/jolicode/automapper/pull/166) Remove cache for property info, use specific services instead

## [9.1.1] - 2024-06-19
Expand Down
2 changes: 1 addition & 1 deletion docs/mapping/transformer.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ class UrlTransformer implements PropertyTransformerInterface, PropertyTransforme
return false;
}

return $sourceUniqueType->getBuiltinType() === 'int' && $source->name === 'id' && $target->name === 'url';
return $sourceUniqueType->getBuiltinType() === 'int' && $source->property === 'id' && $target->property === 'url';
}

public function transform(mixed $value, object|array $source, array $context): mixed
Expand Down

0 comments on commit 4967746

Please sign in to comment.