Skip to content

Commit 4e26e4d

Browse files
authored
Update object_mapper.rst
Fixed documentation for transfomrer inicialization. Need to be new instance creation instance of class path
1 parent e45eeaa commit 4e26e4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

object_mapper.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ Then, use this service to format the mapped property::
375375
class UserInput
376376
{
377377
// this property's value will be generated by the transformer
378-
#[Map(target: 'fullName', transform: FullNameTransformer::class)]
378+
#[Map(target: 'fullName', transform: new FullNameTransformer())]
379379
public string $firstName = '';
380380

381381
public string $lastName = '';

0 commit comments

Comments
 (0)