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