Log in
Model

Customer

Magento\Customer\Model\ResourceModel\Customer

What it does

This class is the resource model for customer entities in Magento 2, responsible for database operations related to customers.

Developers use it to load customers by email, check for duplicate emails, manage password reset tokens, handle customer sessions, and perform other low-level database operations on customer data.

It also handles customer email confirmation requirements and validation before saving customer information.

Public Methods

  • loadByEmail()
  • changePassword()
  • findEmailDuplicates()
  • checkCustomerId()
  • getWebsiteId()
  • setNewIncrementId()
  • changeResetPasswordLinkToken()
  • findSessionCutOff()
  • updateSessionCutOff()