/**
  * @return \yii\db\ActiveQuery
  */
 public function getProd()
 {
     return $this->hasOne(Product::className(), ['prod_id' => 'prod_id']);
 }
 public function getProducts()
 {
     return $this->hasMany(Product::className(), ['cat_id' => 'cat_id']);
 }