Skip to content

Commit

Permalink
add proxy name resolver for models
Browse files Browse the repository at this point in the history
  • Loading branch information
Gyvastis committed Sep 9, 2021
1 parent d864298 commit 5ba0ee8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ public function mapToSalesforceObject($model)

/** @var Result\DescribeSObjectResult $objectDescription */
$objectDescription = $this->getObjectDescription($model);
$reflClass = new ReflectionClass((new Configuration())->getClassNameInflector()->getUserClassName($model));
$reflClass = new ReflectionClass((new Configuration())->getClassNameInflector()->getUserClassName($model::class));
$mappedProperties = $this->annotationReader->getSalesforceFields($model);
$mappedRelations = $this->annotationReader->getSalesforceRelations($model);
$allMappings = $mappedProperties->toArray() + $mappedRelations;
Expand Down

0 comments on commit 5ba0ee8

Please sign in to comment.