/** * Deletes all associated DleTagsesAsNews * @return void */ public function DeleteAllDleTagsesAsNews() { if (is_null($this->intId)) { throw new QUndefinedPrimaryKeyException('Unable to call UnassociateDleTagsAsNews on this unsaved DlePost.'); } // Get the Database Object for this Class $objDatabase = DlePost::GetDatabase(); // Perform the SQL Query $objDatabase->NonQuery(' DELETE FROM `dle_tags` WHERE `news_id` = ' . $objDatabase->SqlVariable($this->intId) . ' '); }