This commit is contained in:
2021-08-17 14:48:37 +08:00
parent 514562759b
commit d639aa0fab
+1 -1
View File
@@ -1033,7 +1033,7 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess,
*/
public static function setDatabaseConnect($dbName): Connection
{
return Kiri::app()->db->get(static::$connection = $dbName);
return Kiri::app()->get('db')->get(static::$connection = $dbName);
}