28 lines
442 B
PHP
28 lines
442 B
PHP
<?php
|
|
|
|
|
|
|
|
namespace app\common\model\store\parameter;
|
|
|
|
use app\common\model\BaseModel;
|
|
|
|
class ParameterValue extends BaseModel
|
|
{
|
|
|
|
|
|
public static function tablePk(): string
|
|
{
|
|
return 'parameter_attr_id';
|
|
}
|
|
|
|
public static function tableName(): string
|
|
{
|
|
return 'parameter_value';
|
|
}
|
|
|
|
public function parameter()
|
|
{
|
|
return $this->hasOne(Parameter::class,'parameter_id','parameter_id');
|
|
}
|
|
}
|