print "\n";
            }
        }
    }
}
sleep(10);
die;
$countryRepo = new \repositories\CountryRepository();
$areaRepo = new \repositories\AreaRepository();
$gb = $countryRepo->loadByTwoCharCode("GB");
$siteRepo = new \repositories\SiteRepository();
$site = $siteRepo->loadById($CONFIG->singleSiteID);
foreach ($parentAreas as $parentArea) {
    print "In: " . $parentArea->getTitle() . "\n\n";
    if (isset($workToDo[$parentArea->getTitle()])) {
        foreach ($workToDo[$parentArea->getTitle()] as $newParentAreaTitle => $newParentAreaAreas) {
            if (count($newParentAreaAreas) > 1) {
                print "Make: " . $newParentAreaTitle . "\n";
                $newParentAreaModel = new \models\AreaModel();
                $newParentAreaModel->setTitle($newParentAreaTitle);
                $areaRepo->create($newParentAreaModel, $parentArea, $site, $gb);
                foreach ($newParentAreaAreas as $area) {
                    print "  -  Area: " . $area->getTitle() . "\n";
                    $area->setParentAreaId($newParentAreaModel->getId());
                    $areaRepo->editParentArea($area);
                }
                print "\n";
            }
        }
    }
}