示例#1
0
 public function load(ObjectManager $manager)
 {
     $contrats = ['CDI', 'CDD', 'Intermitent', 'Freelance', 'Auto-entrepreneur', 'Mi-temps'];
     $skills = ['Scénarisation', 'Design', 'Modelisation', 'Animation', 'Texturing', 'Lighting', 'Rendering', 'Rendering', 'Setup', 'FX', 'Montage', 'Etallonage', 'Réalisation', 'Sound design', 'Doublage', 'Gestion de projet', 'Management', 'Relations clients', 'Budgétisation', 'Création d\'entreprise', 'Autres'];
     $softwares = ['3dsmax', 'Maya', 'Blender', 'Zbrush', 'Mudbox', '3D Coat', 'Toon Boon', 'Flash', 'Flame', 'Photoshop', 'Illustrator', 'Première', 'After Effetcs', 'Nuke', 'Vegas', 'Final Cut', 'Avid', 'Pack Office', 'Autres'];
     $languages = ['Français', 'Anglais', 'Allemand', 'Japonais', 'Mandarin', 'Russe', 'Espagnol', 'Italien', 'Autres'];
     foreach ($contrats as $contrat) {
         $entity = new Attribute();
         $entity->setType(Attribute::TYPE_CONTRACT);
         $entity->setName($contrat);
         $manager->persist($entity);
     }
     foreach ($skills as $skill) {
         $entity = new Attribute();
         $entity->setType(Attribute::TYPE_SKILL);
         $entity->setName($skill);
         $manager->persist($entity);
     }
     foreach ($softwares as $software) {
         $entity = new Attribute();
         $entity->setType(Attribute::TYPE_SOFTWARE);
         $entity->setName($software);
         $manager->persist($entity);
     }
     foreach ($languages as $language) {
         $entity = new Attribute();
         $entity->setType(Attribute::TYPE_LANGUAGE);
         $entity->setName($language);
         $manager->persist($entity);
     }
     $manager->flush();
 }