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