protected function resetDefault()
    {
        $defaultGroups = CustomerGroupQuery::create()
            ->filterByIsDefault(true)
            ->find();

        foreach ($defaultGroups as $defaultGroup) {
            $defaultGroup
                ->setIsDefault(false)
                ->save();
        }

    }
protected function resetDefault()
    {
        $defaultGroups = CustomerGroupQuery::create()
            ->filterByIsDefault(true)
            ->find();

        foreach ($defaultGroups as $defaultGroup) {
            $defaultGroup
                ->setIsDefault(false)
                ->save();
        }

    }
protected function resetDefault ( ) { $ defaultGroups = CustomerGroupQuery :: create ( ) -> filterByIsDefault ( true ) -> find ( ) ; foreach ( $ defaultGroups as $ defaultGroup ) { $ defaultGroup -> setIsDefault ( false ) -> save ( ) ; } }
Remove is_default flag
Remove is_default flag