Skip to content
Closed
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
2 changes: 1 addition & 1 deletion object_mapper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ Then, use this service to format the mapped property::
class UserInput
{
// this property's value will be generated by the transformer
#[Map(target: 'fullName', transform: FullNameTransformer::class)]
#[Map(target: 'fullName', transform: new FullNameTransformer())]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

while this works I would keep the previous form as in that case the class name is interpreted as a service id and thus the code will still work when our transformer requires dependencies and so has to be built by the service container

Copy link
Author

@tito10047 tito10047 Aug 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But its not work on v7.3.2. Im figure this just now.
Maybe is because I do some manipulation with Mapper Service?

public string $firstName = '';

public string $lastName = '';
Expand Down