public static function GetSoapObjectFromObject($objObject, $blnBindRelatedObjects)
 {
     if ($objObject->objAsset) {
         $objObject->objAsset = Asset::GetSoapObjectFromObject($objObject->objAsset, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intAssetId = null;
         }
     }
     if ($objObject->objTransaction) {
         $objObject->objTransaction = Transaction::GetSoapObjectFromObject($objObject->objTransaction, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intTransactionId = null;
         }
     }
     if ($objObject->objParentAssetTransaction) {
         $objObject->objParentAssetTransaction = AssetTransaction::GetSoapObjectFromObject($objObject->objParentAssetTransaction, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intParentAssetTransactionId = null;
         }
     }
     if ($objObject->objSourceLocation) {
         $objObject->objSourceLocation = Location::GetSoapObjectFromObject($objObject->objSourceLocation, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intSourceLocationId = null;
         }
     }
     if ($objObject->objDestinationLocation) {
         $objObject->objDestinationLocation = Location::GetSoapObjectFromObject($objObject->objDestinationLocation, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intDestinationLocationId = null;
         }
     }
     if ($objObject->objNewAsset) {
         $objObject->objNewAsset = Asset::GetSoapObjectFromObject($objObject->objNewAsset, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intNewAssetId = null;
         }
     }
     if ($objObject->dttScheduleReceiptDueDate) {
         $objObject->dttScheduleReceiptDueDate = $objObject->dttScheduleReceiptDueDate->__toString(QDateTime::FormatSoap);
     }
     if ($objObject->objCreatedByObject) {
         $objObject->objCreatedByObject = UserAccount::GetSoapObjectFromObject($objObject->objCreatedByObject, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intCreatedBy = null;
         }
     }
     if ($objObject->dttCreationDate) {
         $objObject->dttCreationDate = $objObject->dttCreationDate->__toString(QDateTime::FormatSoap);
     }
     if ($objObject->objModifiedByObject) {
         $objObject->objModifiedByObject = UserAccount::GetSoapObjectFromObject($objObject->objModifiedByObject, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intModifiedBy = null;
         }
     }
     return $objObject;
 }
 public static function GetSoapObjectFromObject($objObject, $blnBindRelatedObjects)
 {
     if ($objObject->objAssetTransaction) {
         $objObject->objAssetTransaction = AssetTransaction::GetSoapObjectFromObject($objObject->objAssetTransaction, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intAssetTransactionId = null;
         }
     }
     if ($objObject->objToContact) {
         $objObject->objToContact = Contact::GetSoapObjectFromObject($objObject->objToContact, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intToContactId = null;
         }
     }
     if ($objObject->objToUser) {
         $objObject->objToUser = UserAccount::GetSoapObjectFromObject($objObject->objToUser, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intToUserId = null;
         }
     }
     if ($objObject->dttDueDate) {
         $objObject->dttDueDate = $objObject->dttDueDate->__toString(QDateTime::FormatSoap);
     }
     if ($objObject->objCreatedByObject) {
         $objObject->objCreatedByObject = UserAccount::GetSoapObjectFromObject($objObject->objCreatedByObject, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intCreatedBy = null;
         }
     }
     if ($objObject->dttCreationDate) {
         $objObject->dttCreationDate = $objObject->dttCreationDate->__toString(QDateTime::FormatSoap);
     }
     if ($objObject->objModifiedByObject) {
         $objObject->objModifiedByObject = UserAccount::GetSoapObjectFromObject($objObject->objModifiedByObject, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intModifiedBy = null;
         }
     }
     return $objObject;
 }