public function setModifiedBy(\Users $modifiedBy) { $this->__load(); return parent::setModifiedBy($modifiedBy); }
public function addItemAction() { $form = new Form_Iadmin_Products(); if ($this->_request->isPost()) { if ($form->isValid($this->_request->getPost())) { $items = new Items(); $items->setDescription($form->item_description->getValue()); $createdBy = $this->_em->getRepository('Users')->find($this->_userid); $items->setCreatedBy($createdBy); $items->setModifiedBy($createdBy); $items->setCreatedDate(App_Tools_Time::now()); $items->setModifiedDate(App_Tools_Time::now()); $this->_em->persist($items); $this->_em->flush(); } } $this->_redirect("/iadmin/manage-products/item"); }