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