/**
     * Deletes all associated PackageVersions
     * @return void
     */
    public function DeleteAllPackageVersions()
    {
        if (is_null($this->intId)) {
            throw new QUndefinedPrimaryKeyException('Unable to call UnassociatePackageVersion on this unsaved PackageContribution.');
        }
        // Get the Database Object for this Class
        $objDatabase = PackageContribution::GetDatabase();
        // Journaling
        if ($objDatabase->JournalingDatabase) {
            foreach (PackageVersion::LoadArrayByPackageContributionId($this->intId) as $objPackageVersion) {
                $objPackageVersion->Journal('DELETE');
            }
        }
        // Perform the SQL Query
        $objDatabase->NonQuery('
				DELETE FROM
					`package_version`
				WHERE
					`package_contribution_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
    }