public function getModifiedBy() { $this->__load(); return parent::getModifiedBy(); }
public function addVvmTypeAction() { if ($this->_request->isPost()) { if ($this->_request->getPost()) { $form_values = $this->_request->getPost(); $vvm_type = new VvmTypes(); $vvm_type->setVvmTypeName($form_values['vvm_type_name']); // $item_pack = $this->_em->getRepository('ItemPackSizes')->find($form_values['item_pack_size_id']); // $vvm_type->setItemPackSize($item_pack); $vvm_type->setStatus($form_values['status']); $user_id = $this->_em->find('Users', $this->_userid); $vvm_type->setCreatedBy($user_id); $vvm_type->setModifiedBy($user_id); $vvm_type->setCreatedDate(App_Tools_Time::now()); $vvm_type->setModifiedDate(App_Tools_Time::now()); $this->_em->persist($vvm_type); $this->_em->flush(); } } $this->_redirect("/iadmin/manage-products/vvm-type?success=1"); }