src/Core/Model.php
public static function one(PDFfiller $provider, $id)
    {
        $params = static::query($provider, $id);
        $instance = new static($provider, array_merge($params, ['exists' => true]));
        $instance->cacheFields($params);

        return $instance;
    }
public static function one(PDFfiller $provider, $id)
    {
        $params = static::query($provider, $id);
        $instance = new static($provider, array_merge($params, ['exists' => true]));
        $instance->cacheFields($params);

        return $instance;
    }
public static function one ( PDFfiller $ provider , $ id ) { $ params = static :: query ( $ provider , $ id ) ; $ instance = new static ( $ provider , array_merge ( $ params , [ 'exists' => true ] ) ) ; $ instance -> cacheFields ( $ params ) ; return $ instance ; }
Returns model instance
@param PDFfiller $provider
@param $id
@return static
@throws InvalidQueryException
@throws InvalidRequestException
@throws \ReflectionException
Returns model instance