Bridge/Doctrine/ORM/Repository/CustomerGroupRepository.php
public function onClear(OnClearEventArgs $event)
    {
        if ((null === $event->getEntityClass()) || ($this->getClassName() === $event->getEntityClass())) {
            $this->defaultGroup = null;
        }
    }
public function onClear(OnClearEventArgs $event)
    {
        if ((null === $event->getEntityClass()) || ($this->getClassName() === $event->getEntityClass())) {
            $this->defaultGroup = null;
        }
    }
On clear event handler.

@param OnClearEventArgs $event