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