46 lines
728 B
PHP
Executable File
46 lines
728 B
PHP
Executable File
<?php
|
|
|
|
/**
|
|
* @Author: fm453
|
|
* @Date: 2018-11-22 02:22:45
|
|
# @Last modified by: fm453
|
|
# @Last modified time: 2021-09-15T15:27:26+08:00
|
|
* @Email: fm453@lukegzs.com
|
|
*/
|
|
|
|
namespace backend\models;
|
|
|
|
use Yii;
|
|
|
|
class FmEmployee extends \yii\db\ActiveRecord
|
|
{
|
|
//指定数据库
|
|
public static function getDb()
|
|
{
|
|
return Yii::$app->get('lvju');
|
|
}
|
|
/**
|
|
* @inheritdoc
|
|
*/
|
|
public static function tableName()
|
|
{
|
|
return '{{%employee}}';
|
|
}
|
|
|
|
// /**
|
|
// * @inheritdoc
|
|
// */
|
|
// public function rules()
|
|
// {
|
|
// return [];
|
|
// }
|
|
|
|
// /**
|
|
// * @inheritdoc
|
|
// */
|
|
// public function attributeLabels()
|
|
// {
|
|
// return [];
|
|
// }
|
|
}
|