/** * Deletes all associated WpPollsipsAsPollipAid * @return void */ public function DeleteAllWpPollsipsAsPollipAid() { if (is_null($this->intPollaAid)) { throw new QUndefinedPrimaryKeyException('Unable to call UnassociateWpPollsipAsPollipAid on this unsaved WpPollsa.'); } // Get the Database Object for this Class $objDatabase = WpPollsa::GetDatabase(); // Perform the SQL Query $objDatabase->NonQuery(' DELETE FROM `wp_pollsip` WHERE `pollip_aid` = ' . $objDatabase->SqlVariable($this->intPollaAid) . ' '); }