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