Log in
Model

DeleteRelation

Magento\Customer\Model\ResourceModel\Address\DeleteRelation

What it does

This class handles the cleanup of default billing and shipping address references when a customer address is deleted.

When an address being deleted is set as a customer's default billing or shipping address, this class ensures those references in the customer entity table are set to null to maintain data integrity.

Public Methods

  • deleteRelation()