/**
  * 
  * @return \Application\Model\Collection\RequisitionLogsCollection
  */
 public function getRequisitionLogCollection()
 {
     if (!$this->requisitionLogCollection instanceof RequisitionLogsCollection) {
         $this->requisitionLogCollection = RequisitionLogsQuery::create()->whereAdd(RequisitionLogs::ID_REQUISITION, $this->getRequisitionCollection()->getPrimaryKeys())->find();
     }
     return $this->requisitionLogCollection;
 }
Example #2
0
 /**
  *
  */
 protected function trackingAction()
 {
     $id = $this->getRequest()->getParam('id');
     $requisition = RequisitionQuery::create()->findByPKOrThrow($id, $this->i18n->_("It does not exist the Requisition with id {$id}"));
     $this->view->requisitionLogs = RequisitionLogsQuery::create()->whereAdd('id_requisition', $id)->find();
     $this->view->users = UserQuery::create()->find()->toCombo();
 }