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