<?php
/**
 * Created by PhpStorm.
 * User: 30868
 * Date: 2018/9/14
 * Time: 2:38
 */

namespace app\common\model;

use app\common\model\BaseModel;
use traits\model\SoftDelete;

use app\common\model\Project as ProjectModel;

class Orders extends BaseModel
{
    use SoftDelete;
    // 设置当前模型对应的完整数据表名称
    protected $table = 'mr_user_orders';
    public function getProjectNameAttr($value,$data){
      return ProjectModel::get($data['pid']);
    }

}
