/**
     * Deletes all associated FedexShipmentsAsHoldAtLocationState
     * @return void
     */
    public function DeleteAllFedexShipmentsAsHoldAtLocationState()
    {
        if (is_null($this->intStateProvinceId)) {
            throw new QUndefinedPrimaryKeyException('Unable to call UnassociateFedexShipmentAsHoldAtLocationState on this unsaved StateProvince.');
        }
        // Get the Database Object for this Class
        $objDatabase = StateProvince::GetDatabase();
        // Perform the SQL Query
        $objDatabase->NonQuery('
				DELETE FROM
					`fedex_shipment`
				WHERE
					`hold_at_location_state` = ' . $objDatabase->SqlVariable($this->intStateProvinceId) . '
			');
    }
    /**
     * Deletes all associated Addresses
     * @return void
     */
    public function DeleteAllAddresses()
    {
        if (is_null($this->intStateProvinceId)) {
            throw new QUndefinedPrimaryKeyException('Unable to call UnassociateAddress on this unsaved StateProvince.');
        }
        // Get the Database Object for this Class
        $objDatabase = StateProvince::GetDatabase();
        // Journaling
        if ($objDatabase->JournalingDatabase) {
            foreach (Address::LoadArrayByStateProvinceId($this->intStateProvinceId) as $objAddress) {
                $objAddress->Journal('DELETE');
            }
        }
        // Perform the SQL Query
        $objDatabase->NonQuery('
				DELETE FROM
					`address`
				WHERE
					`state_province_id` = ' . $objDatabase->SqlVariable($this->intStateProvinceId) . '
			');
    }