Exemple #1
0
    /**
     * Deletes all associated AuditScans
     * @return void
     */
    public function DeleteAllAuditScans()
    {
        if (is_null($this->intAuditId)) {
            throw new QUndefinedPrimaryKeyException('Unable to call UnassociateAuditScan on this unsaved Audit.');
        }
        // Get the Database Object for this Class
        $objDatabase = Audit::GetDatabase();
        // Perform the SQL Query
        $objDatabase->NonQuery('
				DELETE FROM
					`audit_scan`
				WHERE
					`audit_id` = ' . $objDatabase->SqlVariable($this->intAuditId) . '
			');
    }