Esempio n. 1
0
 /**
  * 与产品分类联表
  */
 public function getBrand()
 {
     return $this->hasOne(Brand::className(), ['id' => 'brand_id']);
 }