File tree Expand file tree Collapse file tree 1 file changed +21
-10
lines changed Expand file tree Collapse file tree 1 file changed +21
-10
lines changed Original file line number Diff line number Diff line change @@ -49,16 +49,27 @@ public function __construct(
4949    ) {
5050        parent ::__construct ($ client$ marshaler$ tableName
5151        if  (!empty ($ keyConditions
52-             $ this setPartitionKeyConditionExpression (
53-                 $ keyConditions'partition ' ]['name ' ],
54-                 $ keyConditions'partition ' ]['value ' ]
55-             );
56-             if  (isset ($ keyConditions'sort ' ])) {
57-                 $ this setSortKeyConditionExpression (
58-                     $ keyConditions'sort ' ]['name ' ],
59-                     $ keyConditions'sort ' ]['operator ' ],
60-                     $ keyConditions'sort ' ]['value ' ]
61-                 );
52+             foreach  ($ keyConditionsas  $ key$ condition
53+                 switch  ($ key
54+                     case  'partition ' :
55+                         $ this setPartitionKeyConditionExpression (
56+                             $ condition'name ' ],
57+                             $ condition'value ' ]
58+                         );
59+                         break ;
60+                     case  'sort ' :
61+                         $ this setSortKeyConditionExpression (
62+                             $ condition'name ' ],
63+                             $ condition'operator ' ],
64+                             $ condition'value ' ]
65+                         );
66+                         break ;
67+                     default :
68+                         $ this setExpression ([
69+                             $ key$ condition
70+                         ]);
71+                         break ;
72+                 }
6273            }
6374        }
6475    }
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments