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.
27 lines
405 B
27 lines
405 B
8 months ago
|
<?php
|
||
|
|
||
|
namespace app\common\model\user;
|
||
|
|
||
|
use app\common\model\BaseModel;
|
||
|
|
||
|
class UserFields extends BaseModel
|
||
|
{
|
||
|
|
||
|
public static function tablePk(): string
|
||
|
{
|
||
|
return 'id';
|
||
|
}
|
||
|
|
||
|
|
||
|
public static function tableName(): string
|
||
|
{
|
||
|
return 'user_fields';
|
||
|
}
|
||
|
|
||
|
public function searchUidAttr($query, $value)
|
||
|
{
|
||
|
if (!empty($value)) $query->where('uid', $value);
|
||
|
}
|
||
|
|
||
|
}
|