hasOne('specGoodsPrice','item_id','item_id'); } public function goods(){ return $this->hasOne('goods','goods_id','goods_id'); } }