/** * @return \yii\db\ActiveQuery */ public function getCustomer() { return $this->hasOne(Customers::className(), ['CustomerId' => 'CustomerId']); }