Address
Magento\Customer\Model\Address
What it does
This class represents a customer address entity in Magento 2, handling the storage and management of customer billing and shipping addresses.
Developers use this model to create, read, update, or delete customer addresses programmatically, as well as to convert between the model representation and the Data API interface.
It automatically triggers customer grid reindexing when addresses are saved or deleted.
Public Methods
- updateData()
- getDataModel()
- getCustomerId()
- setCustomerId()
- getCustomer()
- setCustomer()
- getAttributes()
- getDefaultAttributeCodes()
- getEntityType()
- getRegionId()
- setRegionId()
- getEntityTypeId()
- afterSave()
- afterDeleteCommit()
- reindex()
- getAttributeSetId()