/** * * @return \Application\Model\Collection\PurchaseOrderLogCollection */ public function getPurchaseOrderLogCollection() { if (!$this->purchaseOrderLogCollection instanceof PurchaseOrderLogCollection) { $this->purchaseOrderLogCollection = PurchaseOrderLogQuery::create()->whereAdd(PurchaseOrderLog::ID_PURCHASE_ORDER, $this->getPurchaseOrderCollection()->getPrimaryKeys())->find(); } return $this->purchaseOrderLogCollection; }
/** * */ protected function trackingAction() { $id = $this->getRequest()->getParam('id'); $purchaseOrder = PurchaseOrderQuery::create()->findByPKOrThrow($id, $this->i18n->_("It does not exist the PurchaseOrder with id {$id}")); $this->view->purchaseOrderLogs = PurchaseOrderLogQuery::create()->whereAdd('id_purchase_order', $id)->find(); $this->view->users = UserQuery::create()->find()->toCombo(); }