Log in
Collection

Customer\Collection

Magento\Customer\Model\ResourceModel\Customer\Collection

What it does

This collection class is used to retrieve and manipulate groups of customer entities from the database.

Developers use it to load multiple customer records, filter them by various criteria, add custom fields like full name to the selection, or group customers by email.

It extends Magento's EAV collection functionality specifically for customer data operations.

Public Methods

  • groupByEmail()
  • addNameToSelect()
  • getSelectCountSql()