2016-09-15 24 views
0

使用datastore-api-v1php-gds datastore API v1致命錯誤:找不到類'google appengine datastore v4 RunQueryRequest'

這裏是我的示例代碼:

 

    $obj_gateway = new GDS\Gateway\ProtoBuf("Test123"); 

    $obj_schema = (new GDS\Schema("Messages")) 
     ->addString('message_id') 
     ->addString('type') 
     ->addString('action') 
     ->addInteger('to') 
     ->addDatetime('created_at') 
     ->addString('status') 
     ->addString('message', FALSE); 

    $obj_store = new GDS\Store($obj_schema,$obj_gateway); 


    $query = "SELECT * FROM notifications WHERE `to` = 1 ORDER BY created_at"; 
    $obj_store->query($query); 
    $arr_page = $obj_store->fetchPage(10, 0); 


這是錯誤:

Fatal error: Class 'google\appengine\datastore\v4\RunQueryRequest' not found in /usr/share/nginx/html/csfiles/third_party/gds/vendor/tomwalder/php-gds/src/GDS/Gateway/ProtoBuf.php on line 164

回答