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