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 23c847a
Showing 1 changed file with 1 addition and 1 deletion.
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 23c847a

Please sign in to comment.