This commit is contained in:
2020-08-31 13:58:40 +08:00
parent 801c7dafc0
commit 814e73866e
4 changed files with 52 additions and 41 deletions
+1 -1
View File
@@ -766,7 +766,7 @@ abstract class BaseActiveRecord extends Component implements IOrm, \ArrayAccess
*/
public static function setDatabaseConnect($bsName)
{
return Snowflake::get()->db->instance($bsName);
return Snowflake::get()->db->get($bsName);
}
/**