diff --git a/src/PHPixie/ORM/Wrappers/Model/Entity.php b/src/PHPixie/ORM/Wrappers/Model/Entity.php index 79da1b38..d7e72b86 100755 --- a/src/PHPixie/ORM/Wrappers/Model/Entity.php +++ b/src/PHPixie/ORM/Wrappers/Model/Entity.php @@ -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; } }