Skip to content

Commit

Permalink
Update Entity.php
Browse files Browse the repository at this point in the history
  • Loading branch information
dracony authored May 15, 2017
1 parent 2554d00 commit 5f5d057
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/PHPixie/ORM/Wrappers/Model/Entity.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ public function __set($name, $value)

public function __call($method, $params)
{
return $this->entity->__call($method, $params);
$result = $this->entity->__call($method, $params);
if($result === $this->entity) {
return $this;
}

return $result;
}
}

0 comments on commit 5f5d057

Please sign in to comment.