/**
  * @param ObjectManager $manager
  */
 public function load(ObjectManager $manager)
 {
     $draftToPending = new Role();
     $draftToPending->setName('ROLE_FROM_DRAFT_TO_PENDING');
     $draftToPending->addDescription('en', 'Change status from draft to pending');
     $draftToPending->addDescription('fr', 'Modifier le status de brouillon à en attente');
     $draftToPending->setFromStatus($this->getReference('status-draft'));
     $draftToPending->setToStatus($this->getReference('status-pending'));
     $this->addReference('role-functional-draft-to-pending', $draftToPending);
     $manager->persist($draftToPending);
     $pendintToPusblished = new Role();
     $pendintToPusblished->setName('ROLE_FROM_PENDING_TO_PUBLISHED');
     $pendintToPusblished->addDescription('en', 'Change status from pending to draft');
     $pendintToPusblished->addDescription('fr', 'Modifier le status de en attente à brouillon');
     $pendintToPusblished->setFromStatus($this->getReference('status-pending'));
     $pendintToPusblished->setToStatus($this->getReference('status-published'));
     $this->addReference('role-functional-pending-to-published', $pendintToPusblished);
     $manager->persist($pendintToPusblished);
     $pendingToDraft = new Role();
     $pendingToDraft->setName('ROLE_FROM_PUBLISHED_TO_DRAFT');
     $pendingToDraft->addDescription('en', 'Change status from pending to draft');
     $pendingToDraft->addDescription('fr', 'Modifier le status de en attente à brouillon');
     $pendingToDraft->setFromStatus($this->getReference('status-published'));
     $pendingToDraft->setToStatus($this->getReference('status-draft'));
     $this->addReference('role-functional-published-to-draft', $pendingToDraft);
     $manager->persist($pendingToDraft);
     $manager->flush();
 }
 /**
  * @param ObjectManager $manager
  */
 public function load(ObjectManager $manager)
 {
     $draftToPublished = new Role();
     $draftToPublished->setName('ROLE_FROM_DRAFT_TO_PUBLISHED');
     $draftToPublished->addDescription('en', 'Change status from draft to published');
     $draftToPublished->addDescription('fr', 'Modifier le status de brouillon à publié');
     $draftToPublished->setFromStatus($this->getReference('status-draft'));
     $draftToPublished->setToStatus($this->getReference('status-published'));
     $this->addReference('role-production-draft-to-published', $draftToPublished);
     $manager->persist($draftToPublished);
     $manager->flush();
 }