Skip to content

Commit

Permalink
Fix retrieval of property to work for Astrotomic/translatable
Browse files Browse the repository at this point in the history
  • Loading branch information
Tofandel authored Oct 10, 2024
1 parent 6e2d28d commit 4780958
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Normalizers/Normalized/NormalizedModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function getProperty(string $name, DataProperty $dataProperty): mixed
protected function fetchNewProperty(string $name, DataProperty $dataProperty): mixed
{
if ($this->hasModelAttribute($name)) {
return $this->properties[$name] = $this->model->getAttributeValue($name);
return $this->properties[$name] = $this->model->getAttribute($name);
}

$camelName = Str::camel($name);
Expand Down

0 comments on commit 4780958

Please sign in to comment.