This commit is contained in:
2021-09-29 11:41:13 +08:00
parent e024031214
commit 1ab94221e7
+4 -4
View File
@@ -70,10 +70,10 @@ namespace ' . $namespace . ';
} }
if (!str_contains($imports, 'Database\Annotation\Set')) { if (!str_contains($imports, 'Database\Annotation\Set')) {
$html .= 'use Annotation\Model\Set;' . PHP_EOL; $html .= 'use Database\Annotation\Set;' . PHP_EOL;
} }
if (!str_contains($imports, 'Database\Annotation\Get')) { if (!str_contains($imports, 'Database\Annotation\Get')) {
$html .= 'use Annotation\Model\Get;' . PHP_EOL; $html .= 'use Database\Annotation\Get;' . PHP_EOL;
} }
} catch (\Throwable $e) { } catch (\Throwable $e) {
logger()->addError($e, 'throwable'); logger()->addError($e, 'throwable');
@@ -90,8 +90,8 @@ use Exception;
use Annotation\Target; use Annotation\Target;
use Kiri\Core\Json; use Kiri\Core\Json;
use Database\Connection; use Database\Connection;
use Annotation\Model\Get; use Database\Annotation\Get;
use Annotation\Model\Set; use Database\Annotation\Set;
use Annotation\Model\Relation; use Annotation\Model\Relation;
use Database\Model; use Database\Model;
' . PHP_EOL; ' . PHP_EOL;