Skip to content

Commit

Permalink
Revert "Fix chaining properties error: #10"
Browse files Browse the repository at this point in the history
This reverts commit e829faa.
  • Loading branch information
aginev committed Apr 30, 2018
1 parent e829faa commit fe1b423
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/Rows/ModelRow.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,9 @@ public function __get($key) {
$value = $this->getData();

// The easiest way to chain the object properties
try {
$value = $value->{$key};
} catch (\Exception $e) {
$value = '';
break;
}
foreach ($keys as $key) {
$value = $value->{$key};
}

return $value;
}
Expand Down

0 comments on commit fe1b423

Please sign in to comment.