public function __call($name, $arguments) { if ($this->query->method_exists($name)) { $result = static::callObjectMethod($this->query, $name, $arguments); return is_a($result, customBuilder::class) ? $this : $result; } return parent::__call($name, $arguments); }