function clearLinks(){ global $db_conn; $link = new SI_InvoiceLineLink(); if($link->clearForInvoiceLine($this->id)=== FALSE){ $this->error = "SI_InvoiceLine::clearLinks(): Error removing links: ".$link->getLastError(); return FALSE; } return TRUE; }