You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.0 KiB
55 lines
1.0 KiB
<?php
|
|
|
|
namespace common\models;
|
|
|
|
use Yii;
|
|
|
|
/**
|
|
* This is the model class for table "network_phone_assign_t".
|
|
*
|
|
* @property int $id
|
|
* @property int $user_id
|
|
* @property string $created_at
|
|
* @property string $updated_at
|
|
* @property int $phone
|
|
*/
|
|
class NetworkPhoneSubT extends \yii\db\ActiveRecord
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public static function tableName()
|
|
{
|
|
return 'network_phone_sub_t';
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function rules()
|
|
{
|
|
return [
|
|
[['assign_id', 'phone'], 'integer'],
|
|
[['created_at', 'updated_at'], 'safe'],
|
|
];
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function attributeLabels()
|
|
{
|
|
return [
|
|
'id' => 'ID',
|
|
'user_id' => 'User ID',
|
|
'created_at' => 'Created At',
|
|
'updated_at' => 'Updated At',
|
|
'phone' => 'Phone',
|
|
];
|
|
}
|
|
|
|
public function getUser()
|
|
{
|
|
return $this->hasOne(UserT::className(),['id'=>'user_id']);
|
|
}
|
|
}
|
|
|