We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2554d00 commit 5f5d057Copy full SHA for 5f5d057
src/PHPixie/ORM/Wrappers/Model/Entity.php
@@ -67,6 +67,11 @@ public function __set($name, $value)
67
68
public function __call($method, $params)
69
{
70
- return $this->entity->__call($method, $params);
+ $result = $this->entity->__call($method, $params);
71
+ if($result === $this->entity) {
72
+ return $this;
73
+ }
74
+
75
+ return $result;
76
}
77
0 commit comments