mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-11-04 14:46:19 +08:00 
			
		
		
		
	fix bug: when use a subquery
This commit is contained in:
		@ -748,7 +748,7 @@ PATTERN;
 | 
				
			|||||||
     */
 | 
					     */
 | 
				
			||||||
    public function from($tables)
 | 
					    public function from($tables)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        if ($tables instanceof Expression) {
 | 
					        if ($tables instanceof ExpressionInterface) {
 | 
				
			||||||
            $tables = [$tables];
 | 
					            $tables = [$tables];
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        if (is_string($tables)) {
 | 
					        if (is_string($tables)) {
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user