This commit is contained in:
2023-04-23 10:41:42 +08:00
parent 688f188d7c
commit bb9112d3b5
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -318,7 +318,7 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, T
*/
public function getConnection(): Connection
{
return Kiri::service()->get($this->connection);
return Kiri::service()->get('db.' . $this->connection);
}