Skip to content

Commit e4d2a3c

Browse files
committed
增加getSuffix方法
1 parent 0cb444c commit e4d2a3c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/model/concern/DbConnect.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,15 @@ public function replace(bool $replace = true)
146146
return $this;
147147
}
148148

149+
/**
150+
* 获取当前模型的数据表后缀
151+
*
152+
* @return string
153+
*/
154+
public function getSuffix(): string
155+
{
156+
return $this->getOption('suffix', '');
157+
}
149158

150159
/**
151160
* 设置当前模型数据表的后缀

0 commit comments

Comments
 (0)