Exemplo n.º 1
0
 public function getProductType()
 {
     return $this->hasOne(ProductType::className(), ['id' => 'product_type_id']);
 }