/**
  * {@inheritDoc}
  */
 public function load(ObjectManager $objectManager)
 {
     $datas = [['label' => 'Aeronautic - Navy - Space - Armament', 'enabled' => true, 'subIndustries' => [['label' => 'Aeronautic construction', 'enabled' => true], ['label' => 'Armament', 'enabled' => true], ['label' => 'Equipment and aeronautic systems', 'enabled' => true], ['label' => 'Naval construction', 'enabled' => true], ['label' => 'Spatial industry', 'enabled' => true]]], ['label' => 'Agribusiness and agriculture', 'enabled' => true, 'subIndustries' => [['label' => 'Agriculture', 'enabled' => true], ['label' => 'Fishing', 'enabled' => true], ['label' => 'Fresh and perishable products', 'enabled' => true], ['label' => 'Frozen food', 'enabled' => true], ['label' => 'Intermediary produce', 'enabled' => true], ['label' => 'Wines - Spirits', 'enabled' => true], ['label' => 'Bakery', 'enabled' => true], ['label' => 'Butcher', 'enabled' => true], ['label' => 'Cheese Shop', 'enabled' => true], ['label' => 'Fishmonger', 'enabled' => true], ['label' => 'Greengrocer', 'enabled' => true], ['label' => 'Supermarket', 'enabled' => true], ['label' => 'Takeaway / Deli', 'enabled' => true]]], ['label' => 'Art and Culture', 'enabled' => true, 'subIndustries' => [['label' => 'Architecture', 'enabled' => true], ['label' => 'Cinema', 'enabled' => true], ['label' => 'Design', 'enabled' => true], ['label' => 'Literature', 'enabled' => true], ['label' => 'Music', 'enabled' => true], ['label' => 'Painting', 'enabled' => true], ['label' => 'Performing Arts', 'enabled' => true], ['label' => 'Sculpture', 'enabled' => true]]], ['label' => 'Business services', 'enabled' => true], ['label' => 'Charities, NGOs and Associations', 'enabled' => true, 'subIndustries' => [['label' => 'NGO', 'enabled' => true], ['label' => 'Not for profit associations', 'enabled' => true]]], ['label' => 'Communication and Media', 'enabled' => true, 'subIndustries' => [['label' => 'Advertising', 'enabled' => true], ['label' => 'Audiovisual and Radio', 'enabled' => true], ['label' => 'Film / Documentary', 'enabled' => true], ['label' => 'Internet', 'enabled' => true], ['label' => 'Music', 'enabled' => true], ['label' => 'Posters and billboards', 'enabled' => true], ['label' => 'Press and editorial', 'enabled' => true], ['label' => 'Printing - publication', 'enabled' => true], ['label' => 'Radio', 'enabled' => true], ['label' => 'Trade shows and exhibitions', 'enabled' => true], ['label' => 'Antiques | Second-hand', 'enabled' => true], ['label' => 'Auto Parts | Motorcycle Parts', 'enabled' => true], ['label' => 'Books | Stationery', 'enabled' => true], ['label' => 'Carpentry | Cabinet Making | Woodwork', 'enabled' => true], ['label' => 'Clothing', 'enabled' => true], ['label' => 'Cobbler', 'enabled' => true], ['label' => 'DIY', 'enabled' => true], ['label' => 'Driving School', 'enabled' => true], ['label' => 'Florist', 'enabled' => true], ['label' => 'Funeral Parlour', 'enabled' => true], ['label' => 'Furniture', 'enabled' => true], ['label' => 'Garage', 'enabled' => true], ['label' => 'Garden Centre / Nursery', 'enabled' => true], ['label' => 'Hardware', 'enabled' => true], ['label' => 'Interior decoration', 'enabled' => true], ['label' => 'Ironmonger', 'enabled' => true], ['label' => 'IT | Computing', 'enabled' => true], ['label' => 'Jeweller', 'enabled' => true], ['label' => 'Laundry', 'enabled' => true], ['label' => 'Laundry and Ironing', 'enabled' => true], ['label' => 'Mechanic | MOT | Inspection | Service', 'enabled' => true], ['label' => 'Music shop', 'enabled' => true], ['label' => 'Outlet Store', 'enabled' => true], ['label' => 'Perfume', 'enabled' => true], ['label' => 'Pet Parlour', 'enabled' => true], ['label' => 'Pet Shop', 'enabled' => true], ['label' => 'Printer', 'enabled' => true], ['label' => 'Shoe Shop', 'enabled' => true], ['label' => 'Sports shop', 'enabled' => true], ['label' => 'Telecoms', 'enabled' => true], ['label' => 'Wedding / Bridalwear shop', 'enabled' => true]]], ['label' => 'Construction', 'enabled' => true, 'subIndustries' => [['label' => 'Alarm Fitter', 'enabled' => true], ['label' => 'Architecture', 'enabled' => true], ['label' => 'Bricklayer', 'enabled' => true], ['label' => 'Carpenter', 'enabled' => true], ['label' => 'Chimney Sweep', 'enabled' => true], ['label' => 'Construction', 'enabled' => true], ['label' => 'Electrician', 'enabled' => true], ['label' => 'Heating Engineer', 'enabled' => true], ['label' => 'Insulation fitter', 'enabled' => true], ['label' => 'Locksmith', 'enabled' => true], ['label' => 'Metallurgist', 'enabled' => true], ['label' => 'Painter / Decorator', 'enabled' => true], ['label' => 'Plasterboarder', 'enabled' => true], ['label' => 'Plasterer', 'enabled' => true], ['label' => 'Plumber', 'enabled' => true], ['label' => 'Roofer', 'enabled' => true], ['label' => 'Surveyor', 'enabled' => true], ['label' => 'Swimming Pool construction', 'enabled' => true], ['label' => 'Tiling', 'enabled' => true], ['label' => 'Welder', 'enabled' => true], ['label' => 'Architecture and Projects', 'enabled' => true], ['label' => 'Building Trade: large projects', 'enabled' => true], ['label' => 'Building Trade: residential homes', 'enabled' => true], ['label' => 'Construction materials', 'enabled' => true], ['label' => 'Craftsmanship', 'enabled' => true], ['label' => 'Management of Rental and Leased Properties', 'enabled' => true], ['label' => 'Real Estate', 'enabled' => true], ['label' => 'Real Estate - Selling', 'enabled' => true], ['label' => 'Real Estate Business', 'enabled' => true], ['label' => 'Real Estate Companies - Selling', 'enabled' => true], ['label' => 'Real Estate Construction', 'enabled' => true], ['label' => 'Renovations', 'enabled' => true], ['label' => 'Road Construction', 'enabled' => true]]], ['label' => 'Consulting and Services', 'enabled' => true, 'subIndustries' => [['label' => 'Car rental and leasing - Miscellaneous', 'enabled' => true], ['label' => 'Computer services', 'enabled' => true], ['label' => 'Engineering - Projects management', 'enabled' => true], ['label' => 'Human resources and recruitment', 'enabled' => true], ['label' => 'Industrial Maintenance', 'enabled' => true], ['label' => 'Industrial Waste Disposal - Safety', 'enabled' => true], ['label' => 'Legal', 'enabled' => true], ['label' => 'Leisure - Culture - Cinema', 'enabled' => true], ['label' => 'Market Research', 'enabled' => true], ['label' => 'Marketing and Advertisement', 'enabled' => true], ['label' => 'Organization and Strategy', 'enabled' => true], ['label' => 'Public Relations and communication', 'enabled' => true], ['label' => 'Real Estate', 'enabled' => true], ['label' => 'Temporary employment', 'enabled' => true], ['label' => 'Beautician', 'enabled' => true], ['label' => 'Childcare', 'enabled' => true], ['label' => 'Cleaning | Ironing', 'enabled' => true], ['label' => 'Domestic Help', 'enabled' => true], ['label' => 'Elderly Care', 'enabled' => true], ['label' => 'Hairdressing', 'enabled' => true], ['label' => 'Tutoring', 'enabled' => true]]], ['label' => 'Consumer Goods', 'enabled' => true, 'subIndustries' => [['label' => 'Furniture - Home Appliances', 'enabled' => true], ['label' => 'Leisure - Sports', 'enabled' => true], ['label' => 'Luxury Goods and Cosmetics', 'enabled' => true], ['label' => 'Miscellanous manufactured products', 'enabled' => true], ['label' => 'Textile - Clothing - Accessories', 'enabled' => true]]], ['label' => 'Distribution', 'enabled' => true, 'subIndustries' => [['label' => 'Cars - Motorbikes', 'enabled' => true], ['label' => 'Clothing - Luxury products - Fashion - Sport', 'enabled' => true], ['label' => 'Computers - Consumer electronics', 'enabled' => true], ['label' => 'Discount Stores', 'enabled' => true], ['label' => 'DIY - Gardening', 'enabled' => true], ['label' => 'E-commerce and distance selling', 'enabled' => true], ['label' => 'Grocery and food businesses', 'enabled' => true], ['label' => 'Import - Export', 'enabled' => true], ['label' => 'Local shops', 'enabled' => true], ['label' => 'Purchase', 'enabled' => true], ['label' => 'Records - Books', 'enabled' => true], ['label' => 'Retail', 'enabled' => true], ['label' => 'Supermarkets', 'enabled' => true], ['label' => 'Trade - Industrial Wholesale Trade', 'enabled' => true]]], ['label' => 'Education | Training', 'enabled' => true, 'subIndustries' => [['label' => 'Créche', 'enabled' => true], ['label' => 'Further/Technical College', 'enabled' => true], ['label' => 'Kindergarten', 'enabled' => true], ['label' => 'Primary School', 'enabled' => true], ['label' => 'Research and Development', 'enabled' => true], ['label' => 'Secondary School', 'enabled' => true], ['label' => 'Universities', 'enabled' => true], ['label' => 'Vocational Training', 'enabled' => true]]], ['label' => 'Finance', 'enabled' => true, 'subIndustries' => [['label' => 'Asset Management', 'enabled' => true], ['label' => 'Banking', 'enabled' => true], ['label' => 'Business Management', 'enabled' => true], ['label' => 'Certified Public Accounting', 'enabled' => true], ['label' => 'Financial information and communication', 'enabled' => true], ['label' => 'Financial Services', 'enabled' => true], ['label' => 'Insurance', 'enabled' => true], ['label' => 'Real Estate', 'enabled' => true], ['label' => 'Stock Markets - Brokers', 'enabled' => true], ['label' => 'Venture Capital, LBOs and Private Equity', 'enabled' => true], ['label' => 'Bailiff', 'enabled' => true], ['label' => 'Beautician', 'enabled' => true], ['label' => 'Car Rental', 'enabled' => true], ['label' => 'Chartered Accountant', 'enabled' => true], ['label' => 'Hairdressing', 'enabled' => true], ['label' => 'Insurance | Broker', 'enabled' => true], ['label' => 'Landscape Gardner', 'enabled' => true], ['label' => 'Photographer', 'enabled' => true], ['label' => 'Retirement / Nursing Home', 'enabled' => true], ['label' => 'Security', 'enabled' => true], ['label' => 'Solicitor / Lawyer', 'enabled' => true], ['label' => 'Solicitor / Notary', 'enabled' => true], ['label' => 'Spa | Massage', 'enabled' => true], ['label' => 'Sports | Gym', 'enabled' => true]]], ['label' => 'Grocery Shop', 'enabled' => true, 'subIndustries' => [['label' => 'Agriculture', 'enabled' => true], ['label' => 'Fishing', 'enabled' => true], ['label' => 'Fresh and perishable products', 'enabled' => true], ['label' => 'Frozen food', 'enabled' => true], ['label' => 'Intermediary produce', 'enabled' => true], ['label' => 'Wines - Spirits', 'enabled' => true], ['label' => 'Bakery', 'enabled' => true], ['label' => 'Butcher', 'enabled' => true], ['label' => 'Cheese Shop', 'enabled' => true], ['label' => 'Fishmonger', 'enabled' => true], ['label' => 'Greengrocer', 'enabled' => true], ['label' => 'Supermarket', 'enabled' => true], ['label' => 'Takeaway / Deli', 'enabled' => true]]], ['label' => 'Health', 'enabled' => true, 'subIndustries' => [['label' => 'Cardiology', 'enabled' => true], ['label' => 'Clinical', 'enabled' => true], ['label' => 'Dentistry', 'enabled' => true], ['label' => 'Dermatology', 'enabled' => true], ['label' => 'Doctor', 'enabled' => true], ['label' => 'ENT (ear, nose and throat) Specialist', 'enabled' => true], ['label' => 'Gynechologist', 'enabled' => true], ['label' => 'Homeopathist', 'enabled' => true], ['label' => 'Midwife', 'enabled' => true], ['label' => 'Nursery', 'enabled' => true], ['label' => 'Opthamologist', 'enabled' => true], ['label' => 'Optician', 'enabled' => true], ['label' => 'Osteopath', 'enabled' => true], ['label' => 'Paediatrician', 'enabled' => true], ['label' => 'Pharmacist', 'enabled' => true], ['label' => 'Physiotherapist', 'enabled' => true], ['label' => 'Podiatrist', 'enabled' => true], ['label' => 'Psychiatrist', 'enabled' => true], ['label' => 'Psychologist', 'enabled' => true], ['label' => 'Radiographer', 'enabled' => true], ['label' => 'Speech therapist', 'enabled' => true], ['label' => 'Vet', 'enabled' => true], ['label' => 'Biotech', 'enabled' => true], ['label' => 'Health Care and pharmaceutical', 'enabled' => true], ['label' => 'Medical Equipment', 'enabled' => true], ['label' => 'Pharmaceutical', 'enabled' => true], ['label' => 'Veterinary and animal healthcare', 'enabled' => true]]], ['label' => 'Health and pharmaceutical', 'enabled' => true, 'subIndustries' => [['label' => 'Cardiology', 'enabled' => true], ['label' => 'Clinical', 'enabled' => true], ['label' => 'Dentistry', 'enabled' => true], ['label' => 'Dermatology', 'enabled' => true], ['label' => 'Doctor', 'enabled' => true], ['label' => 'ENT (ear, nose and throat) Specialist', 'enabled' => true], ['label' => 'Gynechologist', 'enabled' => true], ['label' => 'Homeopathist', 'enabled' => true], ['label' => 'Midwife', 'enabled' => true], ['label' => 'Nursery', 'enabled' => true], ['label' => 'Opthamologist', 'enabled' => true], ['label' => 'Optician', 'enabled' => true], ['label' => 'Osteopath', 'enabled' => true], ['label' => 'Paediatrician', 'enabled' => true], ['label' => 'Pharmacist', 'enabled' => true], ['label' => 'Physiotherapist', 'enabled' => true], ['label' => 'Podiatrist', 'enabled' => true], ['label' => 'Psychiatrist', 'enabled' => true], ['label' => 'Psychologist', 'enabled' => true], ['label' => 'Radiographer', 'enabled' => true], ['label' => 'Speech therapist', 'enabled' => true], ['label' => 'Vet', 'enabled' => true], ['label' => 'Biotech', 'enabled' => true], ['label' => 'Health Care and pharmaceutical', 'enabled' => true], ['label' => 'Medical Equipment', 'enabled' => true], ['label' => 'Pharmaceutical', 'enabled' => true], ['label' => 'Veterinary and animal healthcare', 'enabled' => true]]], ['label' => 'High Tech', 'enabled' => true, 'subIndustries' => [['label' => 'Computer Equipment & Peripherals', 'enabled' => true], ['label' => 'Electronics and microelectronics', 'enabled' => true], ['label' => 'Multimedia - Internet', 'enabled' => true], ['label' => 'Software publishers', 'enabled' => true], ['label' => 'Telecom - Internet Products and Services', 'enabled' => true], ['label' => 'Telecom Operators', 'enabled' => true]]], ['label' => 'Domestic Services', 'enabled' => true, 'subIndustries' => [['label' => 'Car rental and leasing - Miscellaneous', 'enabled' => true], ['label' => 'Computer services', 'enabled' => true], ['label' => 'Engineering - Projects management', 'enabled' => true], ['label' => 'Human resources and recruitment', 'enabled' => true], ['label' => 'Industrial Maintenance', 'enabled' => true], ['label' => 'Industrial Waste Disposal - Safety', 'enabled' => true], ['label' => 'Legal', 'enabled' => true], ['label' => 'Leisure - Culture - Cinema', 'enabled' => true], ['label' => 'Market Research', 'enabled' => true], ['label' => 'Aeronautic construction', 'enabled' => true], ['label' => 'Marketing and Advertisement', 'enabled' => true], ['label' => 'Organization and Strategy', 'enabled' => true], ['label' => 'Public Relations and communication', 'enabled' => true], ['label' => 'Real Estate', 'enabled' => true], ['label' => 'Temporary employment', 'enabled' => true], ['label' => 'Beautician', 'enabled' => true], ['label' => 'Childcare', 'enabled' => true], ['label' => 'Cleaning | Ironing', 'enabled' => true], ['label' => 'Domestic Help', 'enabled' => true], ['label' => 'Elderly Care', 'enabled' => true], ['label' => 'Hairdressing', 'enabled' => true], ['label' => 'Tutoring', 'enabled' => true]]], ['label' => 'Industry', 'enabled' => true, 'subIndustries' => [['label' => 'Automobile', 'enabled' => true], ['label' => 'Aviation', 'enabled' => true], ['label' => 'Chemical industries', 'enabled' => true], ['label' => 'Cleaning products - Detergents', 'enabled' => true], ['label' => 'Cosmetic - Perfume - Hygene products', 'enabled' => true], ['label' => 'Electrical and electronic industries', 'enabled' => true], ['label' => 'Electrical Household Appliances', 'enabled' => true], ['label' => 'Extraction - Mines', 'enabled' => true], ['label' => 'Furniture - Wood products', 'enabled' => true], ['label' => 'Glass - Ceramics', 'enabled' => true], ['label' => 'Household goods', 'enabled' => true], ['label' => 'Industrial instruments', 'enabled' => true], ['label' => 'IT equipment', 'enabled' => true], ['label' => 'Leisure products - Toys - Games', 'enabled' => true], ['label' => 'Lighting and electrical fittings', 'enabled' => true], ['label' => 'Mechanical industries', 'enabled' => true], ['label' => 'Medical equipment', 'enabled' => true], ['label' => 'Metal', 'enabled' => true], ['label' => 'Music - Cinema - Video - Radio - Photo - TV', 'enabled' => true], ['label' => 'Nuclear energy', 'enabled' => true], ['label' => 'Optical equipments', 'enabled' => true], ['label' => 'Packaging', 'enabled' => true], ['label' => 'Painting - Ink', 'enabled' => true], ['label' => 'Paper', 'enabled' => true], ['label' => 'Petroleum or Petrochemical and related industries', 'enabled' => true], ['label' => 'Petroleum production and distribution', 'enabled' => true], ['label' => 'Plastics', 'enabled' => true], ['label' => 'Pollution and  Waste Management', 'enabled' => true], ['label' => 'Publishing - Printing', 'enabled' => true], ['label' => 'Railways', 'enabled' => true], ['label' => 'Robotics', 'enabled' => true], ['label' => 'Table art - Decoration', 'enabled' => true], ['label' => 'Textile - Clothing - Shoeware', 'enabled' => true], ['label' => 'Textiles', 'enabled' => true], ['label' => 'Timepieces - Jewellery', 'enabled' => true], ['label' => 'Tobacco', 'enabled' => true], ['label' => 'Water - Electricity - Gas', 'enabled' => true]]], ['label' => 'Leisure | Tourism', 'enabled' => true, 'subIndustries' => [['label' => 'Bar | Café', 'enabled' => true], ['label' => 'Bowling Alley', 'enabled' => true], ['label' => 'Campsite', 'enabled' => true], ['label' => 'Cinema', 'enabled' => true], ['label' => 'Disco | Club | Nightclub', 'enabled' => true], ['label' => 'Equestrian Centre', 'enabled' => true], ['label' => 'Hotel', 'enabled' => true], ['label' => 'Leisure Centre', 'enabled' => true], ['label' => 'Newsagent', 'enabled' => true], ['label' => 'Restaurant', 'enabled' => true], ['label' => 'Swimming Pool', 'enabled' => true], ['label' => 'Travel Agency', 'enabled' => true]]], ['label' => 'Local Services', 'enabled' => true, 'subIndustries' => [['label' => 'Asset Management', 'enabled' => true], ['label' => 'Banking', 'enabled' => true], ['label' => 'Business Management', 'enabled' => true], ['label' => 'Certified Public Accounting', 'enabled' => true], ['label' => 'Financial information and communication', 'enabled' => true], ['label' => 'Financial Services', 'enabled' => true], ['label' => 'Insurance', 'enabled' => true], ['label' => 'Real Estate', 'enabled' => true], ['label' => 'Stock Markets - Brokers', 'enabled' => true], ['label' => 'Venture Capital, LBOs and Private Equity', 'enabled' => true], ['label' => 'Bailiff', 'enabled' => true], ['label' => 'Beautician', 'enabled' => true], ['label' => 'Car Rental', 'enabled' => true], ['label' => 'Chartered Accountant', 'enabled' => true], ['label' => 'Hairdressing', 'enabled' => true], ['label' => 'Insurance | Broker', 'enabled' => true], ['label' => 'Landscape Gardner', 'enabled' => true], ['label' => 'Photographer', 'enabled' => true], ['label' => 'Retirement / Nursing Home', 'enabled' => true], ['label' => 'Security', 'enabled' => true], ['label' => 'Solicitor / Lawyer', 'enabled' => true], ['label' => 'Solicitor / Notary', 'enabled' => true], ['label' => 'Spa | Massage', 'enabled' => true], ['label' => 'Sports | Gym', 'enabled' => true]]], ['label' => 'Public Service', 'enabled' => true, 'subIndustries' => [['label' => 'Day-care centre', 'enabled' => true], ['label' => 'Library', 'enabled' => true], ['label' => 'Occupational Health', 'enabled' => true], ['label' => 'Police', 'enabled' => true], ['label' => 'Railway Stations', 'enabled' => true], ['label' => 'Social Security', 'enabled' => true], ['label' => 'Tourist Office', 'enabled' => true], ['label' => 'Town Hall', 'enabled' => true], ['label' => 'Administration and Public Services', 'enabled' => true], ['label' => 'Cultural Affairs', 'enabled' => true], ['label' => 'Economic Development - Consular Agencies', 'enabled' => true], ['label' => 'Economy - Finance', 'enabled' => true], ['label' => 'Environment - Agriculture', 'enabled' => true], ['label' => 'Foreign Affairs - International Affairs', 'enabled' => true], ['label' => 'Health Services - Social Issues', 'enabled' => true], ['label' => 'Industry - Energy', 'enabled' => true], ['label' => 'IT - Telecommunications', 'enabled' => true], ['label' => 'Law - Justice', 'enabled' => true], ['label' => 'Political organisations', 'enabled' => true], ['label' => 'Regional and local government', 'enabled' => true], ['label' => 'Renovation and restauration', 'enabled' => true], ['label' => 'Sport - Leisure - Tourism', 'enabled' => true], ['label' => 'Teaching  - Research', 'enabled' => true], ['label' => 'Technical Services', 'enabled' => true], ['label' => 'Urban planning - housing', 'enabled' => true]]], ['label' => 'Public Services - Administration', 'enabled' => true, 'subIndustries' => [['label' => 'Day-care centre', 'enabled' => true], ['label' => 'Library', 'enabled' => true], ['label' => 'Occupational Health', 'enabled' => true], ['label' => 'Police', 'enabled' => true], ['label' => 'Railway Stations', 'enabled' => true], ['label' => 'Social Security', 'enabled' => true], ['label' => 'Tourist Office', 'enabled' => true], ['label' => 'Town Hall', 'enabled' => true], ['label' => 'Administration and Public Services', 'enabled' => true], ['label' => 'Cultural Affairs', 'enabled' => true], ['label' => 'Economic Development - Consular Agencies', 'enabled' => true], ['label' => 'Economy - Finance', 'enabled' => true], ['label' => 'Environment - Agriculture', 'enabled' => true], ['label' => 'Foreign Affairs - International Affairs', 'enabled' => true], ['label' => 'Health Services - Social Issues', 'enabled' => true], ['label' => 'Industry - Energy', 'enabled' => true], ['label' => 'IT - Telecommunications', 'enabled' => true], ['label' => 'Law - Justice', 'enabled' => true], ['label' => 'Political organisations', 'enabled' => true], ['label' => 'Regional and local government', 'enabled' => true], ['label' => 'Renovation and restauration', 'enabled' => true], ['label' => 'Sport - Leisure - Tourism', 'enabled' => true], ['label' => 'Teaching  - Research', 'enabled' => true], ['label' => 'Technical Services', 'enabled' => true], ['label' => 'Urban planning - housing', 'enabled' => true]]], ['label' => 'Real Estate, Civil Engineering', 'enabled' => true, 'subIndustries' => [['label' => 'Alarm Fitter', 'enabled' => true], ['label' => 'Architecture', 'enabled' => true], ['label' => 'Bricklayer', 'enabled' => true], ['label' => 'Carpenter', 'enabled' => true], ['label' => 'Chimney Sweep', 'enabled' => true], ['label' => 'Construction', 'enabled' => true], ['label' => 'Electrician', 'enabled' => true], ['label' => 'Heating Engineer', 'enabled' => true], ['label' => 'Insulation fitter', 'enabled' => true], ['label' => 'Locksmith', 'enabled' => true], ['label' => 'Metallurgist', 'enabled' => true], ['label' => 'Painter / Decorator', 'enabled' => true], ['label' => 'Plasterboarder', 'enabled' => true], ['label' => 'Plasterer', 'enabled' => true], ['label' => 'Plumber', 'enabled' => true], ['label' => 'Roofer', 'enabled' => true], ['label' => 'Surveyor', 'enabled' => true], ['label' => 'Swimming Pool construction', 'enabled' => true], ['label' => 'Tiling', 'enabled' => true], ['label' => 'Welder', 'enabled' => true], ['label' => 'Architecture and Projects', 'enabled' => true], ['label' => 'Building Trade: large projects', 'enabled' => true], ['label' => 'Building Trade: residential homes', 'enabled' => true], ['label' => 'Construction materials', 'enabled' => true], ['label' => 'Craftsmanship', 'enabled' => true], ['label' => 'Management of Rental and Leased Properties', 'enabled' => true], ['label' => 'Real Estate', 'enabled' => true], ['label' => 'Real Estate - Selling', 'enabled' => true], ['label' => 'Real Estate Business', 'enabled' => true], ['label' => 'Real Estate Companies - Selling', 'enabled' => true], ['label' => 'Real Estate Construction', 'enabled' => true], ['label' => 'Renovations', 'enabled' => true], ['label' => 'Road Construction', 'enabled' => true]]], ['label' => 'Shop | Store', 'enabled' => true, 'subIndustries' => [['label' => 'Advertising', 'enabled' => true], ['label' => 'Audiovisual and Radio', 'enabled' => true], ['label' => 'Film / Documentary', 'enabled' => true], ['label' => 'Internet', 'enabled' => true], ['label' => 'Music', 'enabled' => true], ['label' => 'Posters and billboards', 'enabled' => true], ['label' => 'Press and editorial', 'enabled' => true], ['label' => 'Printing - publication', 'enabled' => true], ['label' => 'Radio', 'enabled' => true], ['label' => 'Trade shows and exhibitions', 'enabled' => true], ['label' => 'Antiques | Second-hand', 'enabled' => true], ['label' => 'Auto Parts | Motorcycle Parts', 'enabled' => true], ['label' => 'Books | Stationery', 'enabled' => true], ['label' => 'Carpentry | Cabinet Making | Woodwork', 'enabled' => true], ['label' => 'Clothing', 'enabled' => true], ['label' => 'Cobbler', 'enabled' => true], ['label' => 'DIY', 'enabled' => true], ['label' => 'Driving School', 'enabled' => true], ['label' => 'Florist', 'enabled' => true], ['label' => 'Funeral Parlour', 'enabled' => true], ['label' => 'Furniture', 'enabled' => true], ['label' => 'Garage', 'enabled' => true], ['label' => 'Garden Centre / Nursery', 'enabled' => true], ['label' => 'Hardware', 'enabled' => true], ['label' => 'Interior decoration', 'enabled' => true], ['label' => 'Ironmonger', 'enabled' => true], ['label' => 'IT | Computing', 'enabled' => true], ['label' => 'Jeweller', 'enabled' => true], ['label' => 'Laundry', 'enabled' => true], ['label' => 'Laundry and Ironing', 'enabled' => true], ['label' => 'Mechanic | MOT | Inspection | Service', 'enabled' => true], ['label' => 'Music shop', 'enabled' => true], ['label' => 'Outlet Store', 'enabled' => true], ['label' => 'Perfume', 'enabled' => true], ['label' => 'Pet Parlour', 'enabled' => true], ['label' => 'Pet Shop', 'enabled' => true], ['label' => 'Printer', 'enabled' => true], ['label' => 'Shoe Shop', 'enabled' => true], ['label' => 'Sports shop', 'enabled' => true], ['label' => 'Telecoms', 'enabled' => true], ['label' => 'Wedding / Bridalwear shop', 'enabled' => true]]], ['label' => 'Transport', 'enabled' => true, 'subIndustries' => [['label' => 'Car rental and leasing', 'enabled' => true], ['label' => 'Logistics', 'enabled' => true], ['label' => 'Logistics and route planning', 'enabled' => true], ['label' => 'Railroad transportation', 'enabled' => true], ['label' => 'Road haulage', 'enabled' => true], ['label' => 'Shipping', 'enabled' => true], ['label' => 'Transport services', 'enabled' => true], ['label' => 'Transportation by air', 'enabled' => true], ['label' => 'Warehousing', 'enabled' => true], ['label' => 'Ambulances', 'enabled' => true], ['label' => 'Bus/Coach Transport', 'enabled' => true], ['label' => 'Removals', 'enabled' => true], ['label' => 'Taxi', 'enabled' => true]]], ['label' => 'Transportation', 'enabled' => true, 'subIndustries' => [['label' => 'Car rental and leasing', 'enabled' => true], ['label' => 'Logistics', 'enabled' => true], ['label' => 'Logistics and route planning', 'enabled' => true], ['label' => 'Railroad transportation', 'enabled' => true], ['label' => 'Road haulage', 'enabled' => true], ['label' => 'Shipping', 'enabled' => true], ['label' => 'Transport services', 'enabled' => true], ['label' => 'Transportation by air', 'enabled' => true], ['label' => 'Warehousing', 'enabled' => true], ['label' => 'Ambulances', 'enabled' => true], ['label' => 'Bus/Coach Transport', 'enabled' => true], ['label' => 'Removals', 'enabled' => true], ['label' => 'Taxi', 'enabled' => true]]]];
     foreach ($datas as $data) {
         $industry = new Industry();
         $industry->setLabel($data['label']);
         $industry->setEnabled($data['enabled']);
         if (isset($data['subIndustries'])) {
             foreach ($data['subIndustries'] as $subIndustry) {
                 // Search if child already exist
                 $subIndustryObj = $objectManager->getRepository('AlexLSonataResumeBundle:Industry')->findOneByLabel($subIndustry['label']);
                 if (is_null($subIndustryObj)) {
                     // if not create it
                     $subIndustryObj = new Industry();
                     $subIndustryObj->setLabel($subIndustry['label']);
                     $subIndustryObj->setEnabled($subIndustry['enabled']);
                 }
                 $objectManager->persist($subIndustryObj);
                 // Create relationship parent/child
                 $industryHasChild = new IndustryHasChild();
                 $industryHasChild->setChild($subIndustryObj);
                 $industryHasChild->setParent($industry);
                 $objectManager->persist($industryHasChild);
             }
         }
         $objectManager->persist($industry);
         $objectManager->flush();
     }
 }
Esempio n. 2
0
 /**
  * Add parents
  *
  * @param \Application\AlexL\Sonata\ResumeBundle\Entity\IndustryHasChild $parents
  * @return Industry
  */
 public function addParent(\Application\AlexL\Sonata\ResumeBundle\Entity\IndustryHasChild $parents)
 {
     $parents->setChild($this);
     $this->parents[] = $parents;
     return $this;
 }