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