private static function disableCountryById($context, $id_country, $id_shop = null) { if ($id_shop === null) { $id_shop = (int) $context->shop->id; } $dpdpoland_country = new DpdPolandCountry(); $dpdpoland_country->id_country = (int) $id_country; $dpdpoland_country->id_shop = (int) $id_shop; $dpdpoland_country->enabled = 0; return $dpdpoland_country->save(); }