This commit is contained in:
2020-12-17 15:08:38 +08:00
parent bdd26f2b42
commit ecbe23ffcd
+4 -3
View File
@@ -266,7 +266,8 @@ class ' . $managerName . ' extends ActiveRecord
/** /**
* @inheritdoc * @inheritdoc
*/ */
public static function tableName(){ public static function tableName(): string
{
return \'' . $field . '\'; return \'' . $field . '\';
} }
'; ';
@@ -432,10 +433,10 @@ class ' . $managerName . ' extends ActiveRecord
{ {
return ' return '
/** /**
* @return mixed|Connection * @return Connection
* @throws Exception * @throws Exception
*/ */
public static function getDb() public static function getDb(): Connection
{ {
return static::setDatabaseConnect(\'' . $this->db->id . '\'); return static::setDatabaseConnect(\'' . $this->db->id . '\');
} }