public function getModifiedBy() { $this->__load(); return parent::getModifiedBy(); }
public function getCreatedBy() { $this->__load(); return parent::getCreatedBy(); }
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"); }