Skip to content

Commit 5f5d057

Browse files
authored
Update Entity.php
1 parent 2554d00 commit 5f5d057

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/PHPixie/ORM/Wrappers/Model/Entity.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ public function __set($name, $value)
6767

6868
public function __call($method, $params)
6969
{
70-
return $this->entity->__call($method, $params);
70+
$result = $this->entity->__call($method, $params);
71+
if($result === $this->entity) {
72+
return $this;
73+
}
74+
75+
return $result;
7176
}
7277
}

0 commit comments

Comments
 (0)