public function setListRank($listRank) { $this->__load(); return parent::setListRank($listRank); }
public function addManufacturerAction() { $form = new Form_Iadmin_Manufacturer(); if ($this->_request->isPost()) { if ($form->isValid($this->_request->getPost())) { $stakeholder = new Stakeholders(); $stakeholder->setStakeholderName($form->manufacturer->getValue()); $stakeholder->setListRank('1'); $parent_id = $this->_em->getRepository('Stakeholders')->find('1'); $stakeholder->setParent($parent_id); $geo_level_id = $this->_em->getRepository('GeoLevels')->find('1'); $stakeholder->setGeoLevel($geo_level_id); $stakeholder_sector = $this->_em->getRepository('StakeholderSectors')->find($form->sector->getValue()); $stakeholder->setStakeholderSector($stakeholder_sector); $stakeholder_type = $this->_em->getRepository('StakeholderTypes')->find(Model_Stakeholders::TYPE_MANUFACTURER); $stakeholder->setStakeholderType($stakeholder_type); $stakeholder_activity = $this->_em->getRepository('StakeholderActivities')->find('1'); $stakeholder->setStakeholderActivity($stakeholder_activity); $main_stakeholder = $this->_em->getRepository('Stakeholders')->find(1); $stakeholder->setMainStakeholder($main_stakeholder); $this->_em->persist($stakeholder); $this->_em->flush(); } } $this->_redirect("/iadmin/manage-stakeholders/manufacturer"); }