function getProductInstances() { if (empty($this->product_instances)) { $finder = new ProductInstance(); $this->product_instances = $finder->find(array('support_contract_id' => $this->id)); } return $this->product_instances; }