예제 #1
0
 public function getType()
 {
     return $this->hasOne(Type::className(), ['id_type' => 'type_id']);
 }