Phalcon\Mvc\Model\Behavior\NestedSet::missingMethod PHP Method

missingMethod() public method

Calls a method when it's missing in the model
public missingMethod ( Phalcon\Mvc\ModelInterface $model, string $method, null $arguments = null ) : mixed | null | string
$model Phalcon\Mvc\ModelInterface
$method string
$arguments null
return mixed | null | string
    public function missingMethod(ModelInterface $model, $method, $arguments = null)
    {
        if (!method_exists($this, $method)) {
            return null;
        }
        $this->getDbHandler($model);
        $this->setOwner($model);
        return call_user_func_array([$this, $method], $arguments);
    }