@@ -577,6 +577,8 @@ public function newQuery()
577577 */
578578 protected function process ($ query_method , $ processor_method )
579579 {
580+ $ table_name = $ this ->connection ->getTablePrefix () . $ this ->from ;
581+
580582 // Compile columns and wheres attributes.
581583 // These attributes needs to interact with ExpressionAttributes during compile,
582584 // so it need to run before compileExpressionAttributes.
@@ -590,13 +592,13 @@ protected function process($query_method, $processor_method)
590592 // Compile rest of attributes.
591593 $ params = array_merge (
592594 $ params ,
593- $ this ->grammar ->compileTableName ($ this -> from ),
595+ $ this ->grammar ->compileTableName ($ table_name ),
594596 $ this ->grammar ->compileIndexName ($ this ->index ),
595597 $ this ->grammar ->compileKey ($ this ->key ),
596598 $ this ->grammar ->compileItem ($ this ->item ),
597599 $ this ->grammar ->compileUpdates ($ this ->updates ),
598- $ this ->grammar ->compileBatchGetRequestItems ($ this -> from , $ this ->batch_get_keys ),
599- $ this ->grammar ->compileBatchWriteRequestItems ($ this -> from , $ this ->batch_write_request_items ),
600+ $ this ->grammar ->compileBatchGetRequestItems ($ table_name , $ this ->batch_get_keys ),
601+ $ this ->grammar ->compileBatchWriteRequestItems ($ table_name , $ this ->batch_write_request_items ),
600602 $ this ->grammar ->compileDynamodbLimit ($ this ->limit ),
601603 $ this ->grammar ->compileScanIndexForward ($ this ->scan_index_forward ),
602604 $ this ->grammar ->compileExclusiveStartKey ($ this ->exclusive_start_key ),
0 commit comments