function getInvoiceItems() { if (!$this->invoice_items) { $finder = new InvoiceItem(); $this->invoice_items = $finder->find(array('invoice_id' => $this->id)); } return $this->invoice_items; }