<?php public function getGoodsCat() { return $this->hasOne(GoodsCat::class, ['cat_id' => 'goods_cat_id']); }