public function getAreaId()
    {
        $firstAreaCountry = CountryAreaQuery::create()->findOneByCountryId($this->getId());

        if (null !== $firstAreaCountry) {
            return $firstAreaCountry->getAreaId();
        }

        return null;
    }
public function getAreaId()
    {
        $firstAreaCountry = CountryAreaQuery::create()->findOneByCountryId($this->getId());

        if (null !== $firstAreaCountry) {
            return $firstAreaCountry->getAreaId();
        }

        return null;
    }
public function getAreaId ( ) { $ firstAreaCountry = CountryAreaQuery :: create ( ) -> findOneByCountryId ( $ this -> getId ( ) ) ; if ( null !== $ firstAreaCountry ) { return $ firstAreaCountry -> getAreaId ( ) ; } return null ; }
This method ensure backward compatibility to Thelia 2.1, where a country belongs to one and
only one shipping zone.

@deprecated a country may belong to several Areas (shipping zones). Use CountryArea queries instead
This method ensure backward compatibility to Thelia 2 . 1 where a country belongs to one and only one shipping zone .