mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-11-04 14:46:19 +08:00 
			
		
		
		
	@ -8,6 +8,7 @@ Yii Framework 2 Change Log
 | 
				
			|||||||
- Bug #1497: Localized view files are not correctly returned (mintao)
 | 
					- Bug #1497: Localized view files are not correctly returned (mintao)
 | 
				
			||||||
- Bug #1500: Log messages exported to files are not separated by newlines (omnilight, qiangxue)
 | 
					- Bug #1500: Log messages exported to files are not separated by newlines (omnilight, qiangxue)
 | 
				
			||||||
- Bug #1509: The SQL for creating Postgres RBAC tables is incorrect (qiangxue)
 | 
					- Bug #1509: The SQL for creating Postgres RBAC tables is incorrect (qiangxue)
 | 
				
			||||||
 | 
					- Bug #1545: It was not possible to execute db Query twice, params where missing (cebe)
 | 
				
			||||||
- Bug: Fixed `Call to a member function registerAssetFiles() on a non-object` in case of wrong `sourcePath` for an asset bundle (samdark)
 | 
					- Bug: Fixed `Call to a member function registerAssetFiles() on a non-object` in case of wrong `sourcePath` for an asset bundle (samdark)
 | 
				
			||||||
- Bug: Fixed incorrect event name for `yii\jui\Spinner` (samdark)
 | 
					- Bug: Fixed incorrect event name for `yii\jui\Spinner` (samdark)
 | 
				
			||||||
- Enh #1293: Replaced Console::showProgress() with a better approach. See Console::startProgress() for details (cebe)
 | 
					- Enh #1293: Replaced Console::showProgress() with a better approach. See Console::startProgress() for details (cebe)
 | 
				
			||||||
 | 
				
			|||||||
@ -122,7 +122,6 @@ class ActiveQuery extends Query implements ActiveQueryInterface
 | 
				
			|||||||
			$db = $modelClass::getDb();
 | 
								$db = $modelClass::getDb();
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		$params = $this->params;
 | 
					 | 
				
			||||||
		if ($this->sql === null) {
 | 
							if ($this->sql === null) {
 | 
				
			||||||
			if ($this->from === null) {
 | 
								if ($this->from === null) {
 | 
				
			||||||
				$tableName = $modelClass::tableName();
 | 
									$tableName = $modelClass::tableName();
 | 
				
			||||||
@ -131,8 +130,8 @@ class ActiveQuery extends Query implements ActiveQueryInterface
 | 
				
			|||||||
				}
 | 
									}
 | 
				
			||||||
				$this->from = [$tableName];
 | 
									$this->from = [$tableName];
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
			list ($this->sql, $params) = $db->getQueryBuilder()->build($this);
 | 
								list ($this->sql, $this->params) = $db->getQueryBuilder()->build($this);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		return $db->createCommand($this->sql, $params);
 | 
							return $db->createCommand($this->sql, $this->params);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user