22 lines
397 B
PHP
22 lines
397 B
PHP
![]() |
<?php
|
||
|
|
||
|
namespace app\common\model;
|
||
|
|
||
|
use app\BaseModel;
|
||
|
use support\Model;
|
||
|
|
||
|
class Requirement extends BaseModel
|
||
|
{
|
||
|
|
||
|
public function serviceType()
|
||
|
{
|
||
|
return $this->hasOne(ServiceType::class, 'id', 'service_type')->bind(['service_name']);
|
||
|
}
|
||
|
|
||
|
|
||
|
public function bidWinPhotographer()
|
||
|
{
|
||
|
return $this->hasOne(Photographer::class, 'id', 'bid_win_photographer_id');
|
||
|
}
|
||
|
}
|