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