Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuba Płaskonka committed Dec 6, 2019
1 parent 37e1df9 commit c0a61fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/DataObject/Traits/ObjectVarTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ public function getObjectVar($var)
public function setObjectVar($var, $value, bool $silent = false)
{
if (!property_exists($this, $var)) {
throw new \Exception('property ' . $var . ' does not exist');
if($silent) {
return $this;
}
throw new \Exception('property ' . $var . ' does not exist');
}

$this->$var = $value;
Expand Down

0 comments on commit c0a61fb

Please sign in to comment.