/** * Deletes all associated DleCommentsesAsUser * @return void */ public function DeleteAllDleCommentsesAsUser() { if (is_null($this->intUserId)) { throw new QUndefinedPrimaryKeyException('Unable to call UnassociateDleCommentsAsUser on this unsaved DleUsers.'); } // Get the Database Object for this Class $objDatabase = DleUsers::GetDatabase(); // Perform the SQL Query $objDatabase->NonQuery(' DELETE FROM `dle_comments` WHERE `user_id` = ' . $objDatabase->SqlVariable($this->intUserId) . ' '); }