Skip to content

Commit 647c16d

Browse files
authored
small fix
1 parent efb00b5 commit 647c16d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

object-mapper.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ Provide the target class name as the second argument:
7676

7777
// $product is now an instance of Product
7878
// with $product->name = 'Wireless Mouse' and $product->sku = 'WM-1024'
79-
// (assuming matching property names or configuration)
8079

8180
**Mapping to an Existing Object:**
8281

@@ -638,7 +637,7 @@ for the source-to-target relationship:
638637
}
639638
}
640639

641-
// If it's a property lookup and no specific mapping was found, assume direct mapping
640+
// If it's a property lookup and no specific mapping was found, map to the same property
642641
if ($property && empty($mapConfigs)) {
643642
$mapConfigs[] = new Mapping(target: $property, source: $property);
644643
}

0 commit comments

Comments
 (0)