/** * @return \yii\db\ActiveQuery */ public function getDiscovery() { return $this->hasOne(Discovery::className(), ['id' => 'discovery_id']); }