/** * Speciment-to-Type relation */ public function getType() { return $this->hasOne(TestType::className(), ['id' => 'id_type']); }