'ID', 'mall_id' => 'Mall ID', 'cat_id' => 'Cat ID', 'sort' => '排序', 'is_delete' => '删除', 'created_at' => 'Created At', 'updated_at' => 'Updated At', 'deleted_at' => 'Deleted At', ]; } public function getCats() { return $this->hasOne(GoodsCats::className(), ['id' => 'cat_id']); } }