public static function checkUpdate($request, $object)
    {
        $repo = new Tenant_Views_SpaRepository();
        $spa = $repo->get(new Pluf_HTTP_Request('/'), array(
            'modelId' => $object->name
        ));
        $object->last_version = $spa->version;
        $object->update();
        return $object;
    }
public static function checkUpdate($request, $object)
    {
        $repo = new Tenant_Views_SpaRepository();
        $spa = $repo->get(new Pluf_HTTP_Request('/'), array(
            'modelId' => $object->name
        ));
        $object->last_version = $spa->version;
        $object->update();
        return $object;
    }
public static function checkUpdate ( $ request , $ object ) { $ repo = new Tenant_Views_SpaRepository ( ) ; $ spa = $ repo -> get ( new Pluf_HTTP_Request ( '/' ) , array ( 'modelId' => $ object -> name ) ) ; $ object -> last_version = $ spa -> version ; $ object -> update ( ) ; return $ object ; }
Check update of an spa

@param Pluf_HTTP_Request $request
@param Tenant_SPA $object
Check update of an spa