Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
27pchrisl committed Oct 31, 2023
1 parent 4be3580 commit 14210ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Drivers/EloquentEntitySet.php
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ public function modelToEntity(Model $model): Entity
$entity->setSource($model);
$entity->setEntityId($model->getKey());

foreach ($this->getType()->getDeclaredProperties() as $declaredProperty) {
foreach ($this->getSelectedProperties() as $declaredProperty) {
$propertyValue = $entity->newPropertyValue();
$propertyValue->setProperty($declaredProperty);
$propertyValue->setValue($declaredProperty->getType()->instance($model->getAttribute($this->getPropertySourceName($declaredProperty))));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"4.01"
],
"etag": [
"W/\"a70a5a6fdd02f489806ca1865f8562cbb112a31fd527cb7501be1322a1c6fd37\""
"W/\"dee79ce90c1007f5a70216f93481bb0e0a064d57575cb7383084d34b42e71c63\""
]
},
"status": 200
Expand Down

0 comments on commit 14210ee

Please sign in to comment.