/** * * @return \Application\Model\Collection\InspectionCollection */ public function getInspectionCollection() { if (!$this->inspectionCollection instanceof InspectionCollection) { $this->inspectionCollection = InspectionQuery::create()->whereAdd(Inspection::ID_PROFORMA_INVOICE, $this->purchaseOrderEntryCollection->getDisctinctProformaInvoiceIds())->find(); } return $this->inspectionCollection; }