改名
This commit is contained in:
+4
-3
@@ -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 . '\');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user