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