@@ -577,6 +577,8 @@ public function newQuery()
577
577
*/
578
578
protected function process ($ query_method , $ processor_method )
579
579
{
580
+ $ table_name = $ this ->connection ->getTablePrefix () . $ this ->from ;
581
+
580
582
// Compile columns and wheres attributes.
581
583
// These attributes needs to interact with ExpressionAttributes during compile,
582
584
// so it need to run before compileExpressionAttributes.
@@ -590,13 +592,13 @@ protected function process($query_method, $processor_method)
590
592
// Compile rest of attributes.
591
593
$ params = array_merge (
592
594
$ params ,
593
- $ this ->grammar ->compileTableName ($ this -> from ),
595
+ $ this ->grammar ->compileTableName ($ table_name ),
594
596
$ this ->grammar ->compileIndexName ($ this ->index ),
595
597
$ this ->grammar ->compileKey ($ this ->key ),
596
598
$ this ->grammar ->compileItem ($ this ->item ),
597
599
$ 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 ),
600
602
$ this ->grammar ->compileDynamodbLimit ($ this ->limit ),
601
603
$ this ->grammar ->compileScanIndexForward ($ this ->scan_index_forward ),
602
604
$ this ->grammar ->compileExclusiveStartKey ($ this ->exclusive_start_key ),
0 commit comments