public function setCreatedBy(\Users $createdBy)
 {
     $this->__load();
     return parent::setCreatedBy($createdBy);
 }
 public function addStakeholderSectorAction()
 {
     $form = new Form_Iadmin_Stakeholders();
     if ($this->_request->isPost()) {
         if ($form->isValid($this->_request->getPost())) {
             $stakeholder_sectors = new StakeholderSectors();
             $stakeholder_sectors->setStakeholderSectorName($form->stakeholder_sector->getValue());
             $createdBy = $this->_em->getRepository('Users')->find($this->_userid);
             $stakeholder_sectors->setCreatedBy($createdBy);
             $modifiedBy = $this->_em->getRepository('Users')->find($this->_userid);
             $stakeholder_sectors->setModifiedBy($modifiedBy);
             $this->_em->persist($stakeholder_sectors);
             $this->_em->flush();
         }
     }
     $this->_redirect("/iadmin/manage-stakeholders/stakeholder-sectors");
 }