/** * Deletes all associated NarroSuggestionVotesAsContext * @return void */ public function DeleteAllNarroSuggestionVotesAsContext() { if (is_null($this->intContextId)) { throw new QUndefinedPrimaryKeyException('Unable to call UnassociateNarroSuggestionVoteAsContext on this unsaved NarroContext.'); } // Get the Database Object for this Class $objDatabase = NarroContext::GetDatabase(); // Perform the SQL Query $objDatabase->NonQuery(' DELETE FROM `narro_suggestion_vote` WHERE `context_id` = ' . $objDatabase->SqlVariable($this->intContextId) . ' '); }