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