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