public function populateCountry($countryCode)
    {
        $rootLocation = $this
            ->locationPopulatorAdapter
            ->populate($countryCode);

        $this
            ->locationObjectManager
            ->persist($rootLocation);

        $this
            ->locationObjectManager
            ->flush($rootLocation);

        return $this;
    }
public function populateCountry($countryCode)
    {
        $rootLocation = $this
            ->locationPopulatorAdapter
            ->populate($countryCode);

        $this
            ->locationObjectManager
            ->persist($rootLocation);

        $this
            ->locationObjectManager
            ->flush($rootLocation);

        return $this;
    }
public function populateCountry ( $ countryCode ) { $ rootLocation = $ this -> locationPopulatorAdapter -> populate ( $ countryCode ) ; $ this -> locationObjectManager -> persist ( $ rootLocation ) ; $ this -> locationObjectManager -> flush ( $ rootLocation ) ; return $ this ; }
Populate the locations for the received country.

@param string $countryCode The country code to import

@return $this Self object
Populate the locations for the received country .