Skip to content
This repository was archived by the owner on May 12, 2022. It is now read-only.

Commit b64c17c

Browse files
author
Nik Barham
committed
Minor fix
1 parent e137d9e commit b64c17c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Automatorm/Orm/Schema.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ public static function registerCache($cache)
4343

4444
public static function generate($dbconnection = 'default', $namespace = 'models', $cachebust = false)
4545
{
46+
$db = Connection::get($dbconnection);
4647
$key = 'schema_' . md5($dbconnection . $namespace . $db->database . static::CURRENT_VERSION);
4748

48-
$db = Connection::get($dbconnection);
4949
if (is_object(static::$cache)) {
5050
$cache = static::$cache;
5151
} else {

0 commit comments

Comments
 (0)