public function setModifiedDate($modifiedDate) { $this->__load(); return parent::setModifiedDate($modifiedDate); }
public function addItemCategoryAction() { $form = new Form_Iadmin_Products(); if ($this->_request->isPost()) { if ($form->isValid($this->_request->getPost())) { $status = '1'; // Default status is 1. $item_category = new ItemCategories(); $item_category->setItemCategoryName($form->item_category_name->getValue()); $user_id = $this->_em->getRepository('Users')->find($this->_userid); $item_category->setCreatedBy($user_id); $item_category->setModifiedBy($user_id); $item_category->setStatus($status); $item_category->setCreatedDate(App_Tools_Time::now()); $item_category->setModifiedDate(App_Tools_Time::now()); $this->_em->persist($item_category); $this->_em->flush(); } } $this->_redirect("/iadmin/manage-products/item-categories"); }