public static function GetSoapObjectFromObject($objObject, $blnBindRelatedObjects)
 {
     if ($objObject->objPackageContribution) {
         $objObject->objPackageContribution = PackageContribution::GetSoapObjectFromObject($objObject->objPackageContribution, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intPackageContributionId = null;
         }
     }
     if ($objObject->dttPostDate) {
         $objObject->dttPostDate = $objObject->dttPostDate->__toString(QDateTime::FormatSoap);
     }
     return $objObject;
 }
 public static function GetSoapArrayFromArray($objArray)
 {
     if (!$objArray) {
         return null;
     }
     $objArrayToReturn = array();
     foreach ($objArray as $objObject) {
         array_push($objArrayToReturn, PackageContribution::GetSoapObjectFromObject($objObject, true));
     }
     return unserialize(serialize($objArrayToReturn));
 }