We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efb00b5 commit 647c16dCopy full SHA for 647c16d
object-mapper.rst
@@ -76,7 +76,6 @@ Provide the target class name as the second argument:
76
77
// $product is now an instance of Product
78
// with $product->name = 'Wireless Mouse' and $product->sku = 'WM-1024'
79
- // (assuming matching property names or configuration)
80
81
**Mapping to an Existing Object:**
82
@@ -638,7 +637,7 @@ for the source-to-target relationship:
638
637
}
639
640
641
- // If it's a property lookup and no specific mapping was found, assume direct mapping
+ // If it's a property lookup and no specific mapping was found, map to the same property
642
if ($property && empty($mapConfigs)) {
643
$mapConfigs[] = new Mapping(target: $property, source: $property);
644
0 commit comments