[TASK] Add FAL support for import in sys extension impexp 36/27836/8
authorMarc Bastian Heinrichs <typo3@mbh-software.de>
Fri, 21 Feb 2014 15:31:05 +0000 (16:31 +0100)
committerMarc Bastian Heinrichs <typo3@mbh-software.de>
Tue, 11 Mar 2014 16:35:40 +0000 (17:35 +0100)
Until now only files from TCA type group internal_type file or
file_reference could be imported and exports from version 6.x
including sys_file records leads to exceptions on importing.
The patch adds support for handling record types introduced
with the File Abstraction Layer.

Resolves: #55532
Resolves: #55528
Resolves: #55906
Releases: 6.2
Change-Id: I7521c84094b0a0424e13c5f91c26b630bbbccbfe
Reviewed-on: https://review.typo3.org/27836
Reviewed-by: Fabien Udriot
Tested-by: Fabien Udriot
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Marc Bastian Heinrichs
Tested-by: Marc Bastian Heinrichs
25 files changed:
typo3/sysext/impexp/Classes/ImportExport.php
typo3/sysext/impexp/Tests/Functional/Export/IrreTutorialRecords/ExportTest.php
typo3/sysext/impexp/Tests/Functional/Export/PagesAndTtContent/ExportTest.php
typo3/sysext/impexp/Tests/Functional/Export/PagesAndTtContentWithImages/ExportTest.php
typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExport/irre-records.xml [deleted file]
typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExport/pages-and-ttcontent-with-image.xml [deleted file]
typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExport/pages-and-ttcontent.xml [deleted file]
typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExportXml/irre-records.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExportXml/pages-and-ttcontent-with-image.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExportXml/pages-and-ttcontent.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Import/AbstractImportTestCase.php
typo3/sysext/impexp/Tests/Functional/Import/IrreTutorialRecords/ImportInEmptyDatabaseTest.php
typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContent/ImportInEmptyDatabaseTest.php
typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithImages/DataSet/Assertion/importPagesAndRelatedTtContentWithDifferentImageToExistingData.csv [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithImages/DataSet/Assertion/importPagesAndRelatedTtContentWithImagesButWithoutStorageOnCaseInsensitiveFilesystems.csv [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithImages/DataSet/Assertion/importPagesAndRelatedTtContentWithImagesButWithoutStorageOnCaseSensitiveFilesystems.csv [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithImages/DataSet/Assertion/importPagesAndRelatedTtContentWithImagesOnCaseInsensitiveFilesystems.csv [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithImages/DataSet/Assertion/importPagesAndRelatedTtContentWithImagesOnCaseSensitiveFilesystems.csv [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithImages/DataSet/Assertion/importPagesAndRelatedTtContentWithSameImageToExistingData.csv [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithImages/Folders/Assertion/fileadmin/user_upload/typo3_image2_01.jpg [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithImages/ImportExportXml/pages-and-ttcontent-with-existing-different-image.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithImages/ImportExportXml/pages-and-ttcontent-with-existing-same-image.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithImages/ImportExportXml/pages-and-ttcontent-with-image-without-storage.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithImages/ImportInEmptyDatabaseTest.php [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithImages/ImportInFilledDatabaseTest.php [new file with mode: 0644]

index e5a44b9..d48cc12 100644 (file)
@@ -27,6 +27,7 @@ namespace TYPO3\CMS\Impexp;
  *  This copyright notice MUST APPEAR in all copies of the script!
  ***************************************************************/
 
+use TYPO3\CMS\Core\Exception;
 use TYPO3\CMS\Core\Utility\GeneralUtility;
 use TYPO3\CMS\Backend\Utility\BackendUtility;
 
@@ -337,6 +338,13 @@ class ImportExport {
         */
        protected $defaultRecordIncludeFields = array('uid', 'pid');
 
+       /**
+        * Array of current registered storage objects
+        *
+        * @var array
+        */
+       protected $storageObjects = array();
+
        /**************************
         * Initialize
         *************************/
@@ -1255,13 +1263,11 @@ class ImportExport {
         ***********************/
 
        /**
-        * Imports the internal data array to $pid.
+        * Initialize all settings for the import
         *
-        * @param integer $pid Page ID in which to import the content
         * @return void
-        * @todo Define visibility
         */
-       public function importData($pid) {
+       protected function initializeImport() {
                // Set this flag to indicate that an import is being/has been done.
                $this->doesImport = 1;
                // Initialize:
@@ -1273,6 +1279,36 @@ class ImportExport {
                $this->unlinkFiles = array();
                $this->alternativeFileName = array();
                $this->alternativeFilePath = array();
+
+               $this->initializeLocalStorages();
+       }
+
+       /**
+        * Initialize the all present storage objects
+        *
+        * @return void
+        */
+       protected function initializeLocalStorages() {
+               /** @var $storageRepository \TYPO3\CMS\Core\Resource\StorageRepository */
+               $storageRepository = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Resource\\StorageRepository');
+               $this->storageObjects = $storageRepository->findAll();
+       }
+
+
+       /**
+        * Imports the internal data array to $pid.
+        *
+        * @param integer $pid Page ID in which to import the content
+        * @return void
+        */
+       public function importData($pid) {
+
+               $this->initializeImport();
+
+               // Write sys_file_storages first
+               $this->writeSysFileStorageRecords();
+               // Write sys_file records and write the binary file data
+               $this->writeSysFileRecords();
                // Write records, first pages, then the rest
                // Fields with "hard" relations to database, files and flexform fields are kept empty during this run
                $this->writeRecords_pages($pid);
@@ -1289,6 +1325,260 @@ class ImportExport {
        }
 
        /**
+        * Imports the sys_file_storage records from internal data array.
+        *
+        * @return void
+        */
+       protected function writeSysFileStorageRecords() {
+               if (!isset($this->dat['header']['records']['sys_file_storage'])) {
+                       return;
+               }
+               $sysFileStorageUidsToBeResetToDefaultStorage = array();
+               foreach (array_keys($this->dat['header']['records']['sys_file_storage']) as $sysFileStorageUid) {
+                       $storageRecord = $this->dat['records']['sys_file_storage:' . $sysFileStorageUid]['data'];
+                       // continue with Local, writable and online storage only
+                       if ($storageRecord['driver'] === 'Local' && $storageRecord['is_writable'] && $storageRecord['is_online']) {
+                               $useThisStorageUidInsteadOfTheOneInImport = 0;
+                               /** @var $localStorage \TYPO3\CMS\Core\Resource\ResourceStorage */
+                               foreach ($this->storageObjects as $localStorage) {
+                                       // check the available storage for Local, writable and online ones
+                                       if ($localStorage->getDriverType() === 'Local' && $localStorage->isWritable() && $localStorage->isOnline()) {
+                                               // check if there is already a identical storage present (same pathType and basePath)
+                                               $storageRecordConfiguration = \TYPO3\CMS\Core\Resource\ResourceFactory::getInstance()->convertFlexFormDataToConfigurationArray($storageRecord['configuration']);
+                                               $localStorageRecordConfiguration = $localStorage->getConfiguration();
+                                               if ($storageRecordConfiguration['pathType'] == $localStorageRecordConfiguration['pathType'] && $storageRecordConfiguration['basePath'] == $localStorageRecordConfiguration['basePath']) {
+                                                       // same storage is already present
+                                                       $useThisStorageUidInsteadOfTheOneInImport = $localStorage->getUid();
+                                                       break;
+                                               }
+                                       }
+                               }
+                               if ($useThisStorageUidInsteadOfTheOneInImport > 0) {
+                                       // same storage is already present; map the to be imported one to the present one
+                                       $this->import_mapId['sys_file_storage'][$sysFileStorageUid] = $useThisStorageUidInsteadOfTheOneInImport;
+                               } else {
+                                       // Local, writable and online storage. Is allowed to be used to later write files in.
+                                       $this->addSingle('sys_file_storage', $sysFileStorageUid, 0);
+                               }
+                       } else {
+                               // Storage with non Local drivers could be imported but must not be used to saves files in, because you
+                               // could not be sure, that this is supported. The default storage will be used in this case.
+                               // It could happen that non writable and non online storage will be created as dupes because you could not
+                               // check the detailed configuration options at this point
+                               $this->addSingle('sys_file_storage', $sysFileStorageUid, 0);
+                               $sysFileStorageUidsToBeResetToDefaultStorage[] = $sysFileStorageUid;
+                       }
+
+               }
+
+               // Importing the added ones
+               $tce = $this->getNewTCE();
+               // Because all records are being submitted in their correct order with positive pid numbers - and so we should reverse submission order internally.
+               $tce->reverseOrder = 1;
+               $tce->isImporting = TRUE;
+               $tce->start($this->import_data, array());
+               $tce->process_datamap();
+               $this->addToMapId($tce->substNEWwithIDs);
+
+               $defaultStorageUid = NULL;
+               // get default storage
+               $defaultStorage = \TYPO3\CMS\Core\Resource\ResourceFactory::getInstance()->getDefaultStorage();
+               if ($defaultStorage !== NULL) {
+                       $defaultStorageUid = $defaultStorage->getUid();
+               }
+               foreach ($sysFileStorageUidsToBeResetToDefaultStorage as $sysFileStorageUidToBeResetToDefaultStorage) {
+                       $this->import_mapId['sys_file_storage'][$sysFileStorageUidToBeResetToDefaultStorage] = $defaultStorageUid;
+               }
+
+               // unset the sys_file_storage records to prevent a import in writeRecords_records
+               unset($this->dat['header']['records']['sys_file_storage']);
+       }
+
+       /**
+        * Imports the sys_file records and the binary files data from internal data array.
+        *
+        * @return void
+        */
+       protected function writeSysFileRecords() {
+               if (!isset($this->dat['header']['records']['sys_file'])) {
+                       return;
+               }
+
+               // fetch fresh storage records from database
+               $storageRecords = $this->fetchStorageRecords();
+
+               $defaultStorage = \TYPO3\CMS\Core\Resource\ResourceFactory::getInstance()->getDefaultStorage();
+
+               foreach (array_keys($this->dat['header']['records']['sys_file']) as $sysFileUid) {
+                       $fileRecord = $this->dat['records']['sys_file:' . $sysFileUid]['data'];
+
+                       // save file to disk
+                       $fileId = md5($fileRecord['storage'] . ':' . $fileRecord['identifier_hash']);
+                       $temporaryFile = $this->writeTemporaryFileFromData($fileId);
+                       if ($temporaryFile === NULL) {
+                               // error on writing the file. Error message was already added
+                               continue;
+                       }
+
+                       $originalStorageUid = $fileRecord['storage'];
+                       $useStorageFromStorageRecords = FALSE;
+
+                       // replace storage id, if a alternative one was registered
+                       if (isset($this->import_mapId['sys_file_storage'][$fileRecord['storage']])) {
+                               $fileRecord['storage'] = $this->import_mapId['sys_file_storage'][$fileRecord['storage']];
+                               $useStorageFromStorageRecords = TRUE;
+                       }
+
+                       if (empty($fileRecord['storage'])) {
+                               // no storage for the file is defined, mostly because of a missing default storage.
+                               $this->error('Error: No storage for the file "' . $fileRecord['identifier'] . '" with storage uid "' . $originalStorageUid . '"');
+                               continue;
+                       }
+
+                       // using a storage from the local storage is only allowed, if the uid is present in the
+                       // mapping. Only in this case we could be sure, that it's a local, online and writable storage.
+                       if ($useStorageFromStorageRecords && isset($storageRecords[$fileRecord['storage']])) {
+                               /** @var $storage \TYPO3\CMS\Core\Resource\ResourceStorage */
+                               $storage = \TYPO3\CMS\Core\Resource\ResourceFactory::getInstance()->getStorageObject($fileRecord['storage'], $storageRecords[$fileRecord['storage']]);
+                       } elseif ($defaultStorage !== NULL) {
+                               $storage = $defaultStorage;
+                       } else {
+                               $this->error('Error: No storage available for the file "' . $fileRecord['identifier'] . '" with storage uid "' . $fileRecord['storage'] . '"');
+                               continue;
+                       }
+
+                       $newFile = NULL;
+
+                       // check, if there is a identical file
+                       try {
+                               if ($storage->hasFile($fileRecord['identifier'])) {
+                                               $file = $storage->getFile($fileRecord['identifier']);
+                                       if ($file->getSha1() === $fileRecord['sha1']) {
+                                               $newFile = $file;
+                                       }
+                               }
+                       } catch (Exception $e) {}
+
+                       if ($newFile === NULL) {
+
+                               $folderName = dirname(ltrim($fileRecord['identifier'], '/'));
+                               if (!$storage->hasFolder($folderName)) {
+                                       try {
+                                               $storage->createFolder($folderName);
+                                       } catch (Exception $e) {
+                                               $this->error('Error: Folder could not be created for file "' . $fileRecord['identifier'] . '" with storage uid "' . $fileRecord['storage'] . '"');
+                                               continue;
+                                       }
+                               }
+
+                               $importFolder = $storage->getFolder($folderName);
+
+                               try {
+                                       /** @var $file \TYPO3\CMS\Core\Resource\File */
+                                       $newFile = $storage->addFile($temporaryFile, $importFolder, $fileRecord['name']);
+                               } catch (Exception $e) {
+                                       $this->error('Error: File could not be added to the storage: "' . $fileRecord['identifier'] . '" with storage uid "' . $fileRecord['storage'] . '"');
+                                       continue;
+                               }
+
+                               if ($newFile->getSha1() !== $fileRecord['sha1']) {
+                                       $this->error('Error: The hash of the written file is not identical to the import data! File could be corrupted! File: "' . $fileRecord['identifier'] . '" with storage uid "' . $fileRecord['storage'] . '"');
+                               }
+                       }
+
+                       // save the new uid in the import id map
+                       $this->import_mapId['sys_file'][$fileRecord['uid']] = $newFile->getUid();
+                       $this->fixUidLocalInSysFileReferenceRecords($fileRecord['uid'], $newFile->getUid());
+
+               }
+
+               // unset the sys_file records to prevent a import in writeRecords_records
+               unset($this->dat['header']['records']['sys_file']);
+       }
+
+       /**
+        * Normally the importer works like the following:
+        * Step 1: import the records with cleared field values of relation fields (see addSingle())
+        * Step 2: update the records with the right relation ids (see setRelations())
+        *
+        * In step 2 the saving fields of type "relation to sys_file_reference" checks the related sys_file_reference
+        * record (created in step 1) with the FileExtensionFilter for matching file extensions of the related file.
+        * To make this work correct, the uid_local of sys_file_reference records has to be not empty AND has to
+        * relate to the correct (imported) sys_file record uid!!!
+        *
+        * This is fixed here.
+        *
+        * @param int $oldFileUid
+        * @param int $newFileUid
+        * @return void
+       */
+       protected function fixUidLocalInSysFileReferenceRecords($oldFileUid, $newFileUid) {
+               if (!isset($this->dat['header']['records']['sys_file_reference'])) {
+                       return;
+               }
+
+               foreach (array_keys($this->dat['header']['records']['sys_file_reference']) as $sysFileReferenceUid) {
+                       $fileReferenceRecord = $this->dat['records']['sys_file_reference:' . $sysFileReferenceUid]['data'];
+                       if ($fileReferenceRecord['uid_local'] == $oldFileUid) {
+                               $fileReferenceRecord['uid_local'] = $newFileUid;
+                               $this->dat['records']['sys_file_reference:' . $sysFileReferenceUid]['data'] = $fileReferenceRecord;
+                       }
+               }
+       }
+
+       /**
+        * Fetched fresh storage records from database because the new imported
+        * ones are not in cached data of the StorageRepository
+        *
+        * @return bool|array
+        */
+       protected function fetchStorageRecords() {
+               $whereClause = \TYPO3\CMS\Backend\Utility\BackendUtility::BEenableFields('sys_file_storage');
+               $whereClause .= \TYPO3\CMS\Backend\Utility\BackendUtility::deleteClause('sys_file_storage');
+
+               $rows = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows(
+                       '*',
+                       'sys_file_storage',
+                       '1=1' . $whereClause,
+                       '',
+                       '',
+                       '',
+                       'uid'
+               );
+
+               return $rows;
+       }
+
+       /**
+        * Writes the file from import array to temp dir and returns the filename of it.
+        *
+        * @param string $fileId
+        * @param string $dataKey
+        * @return string Absolute filename of the temporary filename of the file
+        */
+       protected function writeTemporaryFileFromData($fileId, $dataKey = 'files_fal') {
+               $temporaryFilePath = NULL;
+               if (is_array($this->dat[$dataKey][$fileId])) {
+                       $temporaryFilePathInternal = GeneralUtility::tempnam('import_temp_');
+                       GeneralUtility::writeFile($temporaryFilePathInternal, $this->dat[$dataKey][$fileId]['content']);
+                       clearstatcache();
+                       if (@is_file($temporaryFilePathInternal)) {
+                               $this->unlinkFiles[] = $temporaryFilePathInternal;
+                               if (filesize($temporaryFilePathInternal) == $this->dat[$dataKey][$fileId]['filesize']) {
+                                       $temporaryFilePath = $temporaryFilePathInternal;
+                               } else {
+                                       $this->error('Error: temporary file ' . $temporaryFilePathInternal . ' had a size (' . filesize($temporaryFilePathInternal) . ') different from the original (' . $this->dat[$dataKey][$fileId]['filesize'] . ')', 1);
+                               }
+                       } else {
+                               $this->error('Error: temporary file ' . $temporaryFilePathInternal . ' was not written as it should have been!', 1);
+                       }
+               } else {
+                       $this->error('Error: No file found for ID ' . $fileId, 1);
+               }
+               return $temporaryFilePath;
+       }
+
+       /**
         * Writing pagetree/pages to database:
         *
         * @param integer $pid PID in which to import. If the operation is an update operation, the root of the page tree inside will be moved to this PID unless it is the same as the root page from the import
@@ -1505,6 +1795,21 @@ class ImportExport {
                        if (is_array($record)) {
                                if ($this->update && $this->doesRecordExist($table, $uid) && $this->import_mode[$table . ':' . $uid] !== 'as_new') {
                                        $ID = $uid;
+                               } elseif ($table === 'sys_file_metadata' && $record['sys_language_uid'] == '0' && $this->import_mapId['sys_file'][$record['file']]) {
+                                       // on adding sys_file records the belonging sys_file_metadata record was also created
+                                       // if there is one the record need to be overwritten instead of creating a new one.
+                                       $recordInDatabase = $GLOBALS['TYPO3_DB']->exec_SELECTgetSingleRow(
+                                               'uid',
+                                               'sys_file_metadata',
+                                               'file = ' . $this->import_mapId['sys_file'][$record['file']] . ' AND sys_language_uid = 0 AND pid = 0'
+                                       );
+                                       if ($recordInDatabase !== NULL) {
+                                               $this->import_mapId['sys_file_metadata'][$record['uid']] = $recordInDatabase['uid'];
+                                               $ID = $recordInDatabase['uid'];
+                                       } else {
+                                               $ID = uniqid('NEW');
+                                       }
+
                                } else {
                                        $ID = uniqid('NEW');
                                }
@@ -1541,8 +1846,16 @@ class ImportExport {
 
                                                case 'file':
                                                        // Fixed later in ->setRelations() [because we need to know ALL newly created IDs before we can map relations!]
-                                                       // In the meantime we set NO values for relations:
-                                                       $this->import_data[$table][$ID][$field] = '';
+                                                       // In the meantime we set NO values for relations.
+                                                       //
+                                                       // BUT for field uid_local of table sys_file_reference the relation MUST not be cleared here,
+                                                       // because the value is already the uid of the right imported sys_file record.
+                                                       // @see fixUidLocalInSysFileReferenceRecords()
+                                                       // If it's empty or a uid to another record the FileExtensionFilter will throw an exception or
+                                                       // delete the reference record if the file extension of the related record doesn't match.
+                                                       if ($table !== 'sys_file_reference' && $field !== 'uid_local') {
+                                                               $this->import_data[$table][$ID][$field] = '';
+                                                       }
                                                        break;
                                                case 'flex':
                                                        // Fixed later in setFlexFormRelations()
@@ -1644,6 +1957,11 @@ class ImportExport {
                                if (is_array($this->dat['records'][$table . ':' . $uid]['rels'])) {
                                        // Traverse relation fields of each record
                                        foreach ($this->dat['records'][$table . ':' . $uid]['rels'] as $field => $config) {
+                                               // uid_local of sys_file_reference needs no update because the correct reference uid was already written
+                                               // @see ImportExport::fixUidLocalInSysFileReferenceRecords()
+                                               if ($table === 'sys_file_reference' && $field === 'uid_local') {
+                                                       continue;
+                                               }
                                                switch ((string) $config['type']) {
                                                        case 'db':
                                                                if (is_array($config['itemArray']) && count($config['itemArray'])) {
@@ -2614,6 +2932,12 @@ class ImportExport {
         */
        public function traverseAllRecords($pT, &$lines) {
                foreach ($pT as $t => $recUidArr) {
+                       if ($this->update && $t === 'sys_file') {
+                               $this->error('Updating sys_file records is not supported! They will be imported as new records!');
+                       }
+                       if ($this->force_all_UIDS && $t === 'sys_file') {
+                               $this->error('Forcing uids of sys_file records is not supported! They will be imported as new records!');
+                       }
                        if ($t != 'pages') {
                                $preCode = '';
                                foreach ($recUidArr as $ruid => $value) {
@@ -2704,7 +3028,11 @@ class ImportExport {
                                                $optValues['force_uid'] = sprintf($LANG->getLL('impexpcore_singlereco_forceUidSAdmin'), $uid);
                                        }
                                        $optValues['exclude'] = $LANG->getLL('impexpcore_singlereco_exclude');
-                                       $pInfo['updateMode'] = $this->renderSelectBox('tx_impexp[import_mode][' . $table . ':' . $uid . ']', $this->import_mode[$table . ':' . $uid], $optValues);
+                                       if ($table === 'sys_file') {
+                                               $pInfo['updateMode'] = '';
+                                       } else {
+                                               $pInfo['updateMode'] = $this->renderSelectBox('tx_impexp[import_mode][' . $table . ':' . $uid . ']', $this->import_mode[$table . ':' . $uid], $optValues);
+                                       }
                                }
                                // Diff vieiw:
                                if ($this->showDiff) {
index 007efaf..1933997 100644 (file)
@@ -305,7 +305,7 @@ class ExportTest extends \TYPO3\CMS\Impexp\Tests\Functional\Export\AbstractExpor
 
                $out = $this->export->compileMemoryToFileContent('xml');
 
-               $this->assertXmlStringEqualsXmlFile(__DIR__ . '/../../Fixtures/ImportExport/irre-records.xml', $out);
+               $this->assertXmlStringEqualsXmlFile(__DIR__ . '/../../Fixtures/ImportExportXml/irre-records.xml', $out);
        }
 
 }
\ No newline at end of file
index 6a4b615..83aa1d7 100644 (file)
@@ -82,7 +82,7 @@ class ExportTest extends \TYPO3\CMS\Impexp\Tests\Functional\Export\AbstractExpor
 
                $out = $this->export->compileMemoryToFileContent('xml');
 
-               $this->assertXmlStringEqualsXmlFile(__DIR__ . '/../../Fixtures/ImportExport/pages-and-ttcontent.xml', $out);
+               $this->assertXmlStringEqualsXmlFile(__DIR__ . '/../../Fixtures/ImportExportXml/pages-and-ttcontent.xml', $out);
        }
 
 }
index 3ea1c71..ca60a5d 100644 (file)
@@ -33,8 +33,6 @@ require_once __DIR__ . '/../AbstractExportTestCase.php';
  */
 class ExportTest extends \TYPO3\CMS\Impexp\Tests\Functional\Export\AbstractExportTestCase {
 
-
-
        protected $pathsToLinkInTestInstance = array(
                'typo3/sysext/impexp/Tests/Functional/Fixtures/Folders/fileadmin/user_upload' => 'fileadmin/user_upload'
        );
@@ -159,7 +157,7 @@ class ExportTest extends \TYPO3\CMS\Impexp\Tests\Functional\Export\AbstractExpor
 
                $out = $this->export->compileMemoryToFileContent('xml');
 
-               $this->assertXmlStringEqualsXmlFile(__DIR__ . '/../../Fixtures/ImportExport/pages-and-ttcontent-with-image.xml', $out);
+               $this->assertXmlStringEqualsXmlFile(__DIR__ . '/../../Fixtures/ImportExportXml/pages-and-ttcontent-with-image.xml', $out);
        }
 
 }
\ No newline at end of file
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExport/irre-records.xml b/typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExport/irre-records.xml
deleted file mode 100644 (file)
index 1e64f04..0000000
+++ /dev/null
@@ -1,1955 +0,0 @@
-<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
-<T3RecordDocument>
-       <header type="array">
-               <records type="array">
-                       <table index="pages" type="array">
-                               <rec index="1" type="array">
-                                       <uid>1</uid>
-                                       <pid>0</pid>
-                                       <title>IRRE</title>
-                                       <size>162</size>
-                                       <relations index="rels" type="array">
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                       </table>
-                       <table index="tt_content" type="array">
-                               <rec index="1" type="array">
-                                       <uid>1</uid>
-                                       <pid>1</pid>
-                                       <title>Test content</title>
-                                       <size>254</size>
-                                       <relations index="rels" type="array">
-                                               <element index="tx_irretutorial_1nff_hotel:1" type="array">
-                                                       <id>1</id>
-                                                       <table>tx_irretutorial_1nff_hotel</table>
-                                               </element>
-                                               <element index="tx_irretutorial_1nff_hotel:2" type="array">
-                                                       <id>2</id>
-                                                       <table>tx_irretutorial_1nff_hotel</table>
-                                               </element>
-                                               <element index="tx_irretutorial_1ncsv_hotel:1" type="array">
-                                                       <id>1</id>
-                                                       <table>tx_irretutorial_1ncsv_hotel</table>
-                                               </element>
-                                               <element index="tx_irretutorial_1ncsv_hotel:2" type="array">
-                                                       <id>2</id>
-                                                       <table>tx_irretutorial_1ncsv_hotel</table>
-                                               </element>
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                       </table>
-                       <table index="tx_irretutorial_1nff_hotel" type="array">
-                               <rec index="1" type="array">
-                                       <uid>1</uid>
-                                       <pid>1</pid>
-                                       <title>Hotel 1 (nff)</title>
-                                       <size>336</size>
-                                       <relations index="rels" type="array">
-                                               <element index="tx_irretutorial_1nff_offer:1" type="array">
-                                                       <id>1</id>
-                                                       <table>tx_irretutorial_1nff_offer</table>
-                                               </element>
-                                               <element index="tx_irretutorial_1nff_offer:2" type="array">
-                                                       <id>2</id>
-                                                       <table>tx_irretutorial_1nff_offer</table>
-                                               </element>
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                               <rec index="2" type="array">
-                                       <uid>2</uid>
-                                       <pid>1</pid>
-                                       <title>Hotel 2 (nff)</title>
-                                       <size>336</size>
-                                       <relations index="rels" type="array">
-                                               <element index="tx_irretutorial_1nff_offer:3" type="array">
-                                                       <id>3</id>
-                                                       <table>tx_irretutorial_1nff_offer</table>
-                                               </element>
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                       </table>
-                       <table index="tx_irretutorial_1nff_offer" type="array">
-                               <rec index="1" type="array">
-                                       <uid>1</uid>
-                                       <pid>1</pid>
-                                       <title>Offer 1.1 (nff)</title>
-                                       <size>354</size>
-                                       <relations index="rels" type="array">
-                                               <element index="tx_irretutorial_1nff_price:1" type="array">
-                                                       <id>1</id>
-                                                       <table>tx_irretutorial_1nff_price</table>
-                                               </element>
-                                               <element index="tx_irretutorial_1nff_price:2" type="array">
-                                                       <id>2</id>
-                                                       <table>tx_irretutorial_1nff_price</table>
-                                               </element>
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                               <rec index="3" type="array">
-                                       <uid>3</uid>
-                                       <pid>1</pid>
-                                       <title>Offer 2.1 (nff)</title>
-                                       <size>354</size>
-                                       <relations index="rels" type="array">
-                                               <element index="tx_irretutorial_1nff_price:4" type="array">
-                                                       <id>4</id>
-                                                       <table>tx_irretutorial_1nff_price</table>
-                                               </element>
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                               <rec index="2" type="array">
-                                       <uid>2</uid>
-                                       <pid>1</pid>
-                                       <title>Offer 1.2 (nff)</title>
-                                       <size>354</size>
-                                       <relations index="rels" type="array">
-                                               <element index="tx_irretutorial_1nff_price:3" type="array">
-                                                       <id>3</id>
-                                                       <table>tx_irretutorial_1nff_price</table>
-                                               </element>
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                       </table>
-                       <table index="tx_irretutorial_1nff_price" type="array">
-                               <rec index="1" type="array">
-                                       <uid>1</uid>
-                                       <pid>1</pid>
-                                       <title>Price 1.1.1 (nff)</title>
-                                       <size>358</size>
-                                       <relations index="rels" type="array">
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                               <rec index="3" type="array">
-                                       <uid>3</uid>
-                                       <pid>1</pid>
-                                       <title>Price 1.2.1 (nff)</title>
-                                       <size>360</size>
-                                       <relations index="rels" type="array">
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                               <rec index="4" type="array">
-                                       <uid>4</uid>
-                                       <pid>1</pid>
-                                       <title>Price 2.1.1 (nff)</title>
-                                       <size>365</size>
-                                       <relations index="rels" type="array">
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                               <rec index="2" type="array">
-                                       <uid>2</uid>
-                                       <pid>1</pid>
-                                       <title>Price 1.1.2 (nff)</title>
-                                       <size>360</size>
-                                       <relations index="rels" type="array">
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                       </table>
-                       <table index="tx_irretutorial_mnasym_hotel" type="array">
-                               <rec index="1" type="array">
-                                       <uid>1</uid>
-                                       <pid>1</pid>
-                                       <title>Hotel 1 (m:n ASym)</title>
-                                       <size>252</size>
-                                       <relations index="rels" type="array">
-                                               <element index="tx_irretutorial_mnasym_hotel_offer_rel:2" type="array">
-                                                       <id>2</id>
-                                                       <table>tx_irretutorial_mnasym_hotel_offer_rel</table>
-                                               </element>
-                                               <element index="tx_irretutorial_mnasym_hotel_offer_rel:1" type="array">
-                                                       <id>1</id>
-                                                       <table>tx_irretutorial_mnasym_hotel_offer_rel</table>
-                                               </element>
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                       </table>
-                       <table index="tx_irretutorial_mnasym_hotel_offer_rel" type="array">
-                               <rec index="1" type="array">
-                                       <uid>1</uid>
-                                       <pid>1</pid>
-                                       <title>1</title>
-                                       <size>282</size>
-                                       <relations index="rels" type="array">
-                                               <element index="tx_irretutorial_mnasym_hotel:1" type="array">
-                                                       <id>1</id>
-                                                       <table>tx_irretutorial_mnasym_hotel</table>
-                                               </element>
-                                               <element index="tx_irretutorial_mnasym_offer:2" type="array">
-                                                       <id>2</id>
-                                                       <table>tx_irretutorial_mnasym_offer</table>
-                                               </element>
-                                               <element index="tx_irretutorial_mnasym_price:1" type="array">
-                                                       <id>1</id>
-                                                       <table>tx_irretutorial_mnasym_price</table>
-                                               </element>
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                               <rec index="2" type="array">
-                                       <uid>2</uid>
-                                       <pid>1</pid>
-                                       <title>2</title>
-                                       <size>282</size>
-                                       <relations index="rels" type="array">
-                                               <element index="tx_irretutorial_mnasym_hotel:1" type="array">
-                                                       <id>1</id>
-                                                       <table>tx_irretutorial_mnasym_hotel</table>
-                                               </element>
-                                               <element index="tx_irretutorial_mnasym_offer:1" type="array">
-                                                       <id>1</id>
-                                                       <table>tx_irretutorial_mnasym_offer</table>
-                                               </element>
-                                               <element index="tx_irretutorial_mnasym_price:2" type="array">
-                                                       <id>2</id>
-                                                       <table>tx_irretutorial_mnasym_price</table>
-                                               </element>
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                       </table>
-                       <table index="tx_irretutorial_mnasym_offer" type="array">
-                               <rec index="2" type="array">
-                                       <uid>2</uid>
-                                       <pid>1</pid>
-                                       <title>Offer 2 (m:n ASym)</title>
-                                       <size>252</size>
-                                       <relations index="rels" type="array">
-                                               <element index="tx_irretutorial_mnasym_hotel_offer_rel:1" type="array">
-                                                       <id>1</id>
-                                                       <table>tx_irretutorial_mnasym_hotel_offer_rel</table>
-                                               </element>
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                               <rec index="1" type="array">
-                                       <uid>1</uid>
-                                       <pid>1</pid>
-                                       <title>Offer 1 (m:n ASym)</title>
-                                       <size>252</size>
-                                       <relations index="rels" type="array">
-                                               <element index="tx_irretutorial_mnasym_hotel_offer_rel:2" type="array">
-                                                       <id>2</id>
-                                                       <table>tx_irretutorial_mnasym_hotel_offer_rel</table>
-                                               </element>
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                       </table>
-                       <table index="tx_irretutorial_mnasym_price" type="array">
-                               <rec index="1" type="array">
-                                       <uid>1</uid>
-                                       <pid>1</pid>
-                                       <title>Price 1 1:2 (m:n ASym)</title>
-                                       <size>281</size>
-                                       <relations index="rels" type="array">
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                               <rec index="2" type="array">
-                                       <uid>2</uid>
-                                       <pid>1</pid>
-                                       <title>Price 2 1:1 (m:n ASym)</title>
-                                       <size>280</size>
-                                       <relations index="rels" type="array">
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                       </table>
-                       <table index="tx_irretutorial_mnmmasym_hotel" type="array">
-                               <rec index="1" type="array">
-                                       <uid>1</uid>
-                                       <pid>1</pid>
-                                       <title>Hotel 1 (m:n (MM) ASym)</title>
-                                       <size>257</size>
-                                       <relations index="rels" type="array">
-                                               <element index="tx_irretutorial_mnmmasym_offer:1" type="array">
-                                                       <id>1</id>
-                                                       <table>tx_irretutorial_mnmmasym_offer</table>
-                                               </element>
-                                               <element index="tx_irretutorial_mnmmasym_offer:2" type="array">
-                                                       <id>2</id>
-                                                       <table>tx_irretutorial_mnmmasym_offer</table>
-                                               </element>
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                               <rec index="2" type="array">
-                                       <uid>2</uid>
-                                       <pid>1</pid>
-                                       <title>Hotel 2 (m:n (MM) ASym)</title>
-                                       <size>257</size>
-                                       <relations index="rels" type="array">
-                                               <element index="tx_irretutorial_mnmmasym_offer:3" type="array">
-                                                       <id>3</id>
-                                                       <table>tx_irretutorial_mnmmasym_offer</table>
-                                               </element>
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                       </table>
-                       <table index="tx_irretutorial_mnmmasym_offer" type="array">
-                               <rec index="3" type="array">
-                                       <uid>3</uid>
-                                       <pid>1</pid>
-                                       <title>Offer 2.1 (m:n (MM) ASym)</title>
-                                       <size>279</size>
-                                       <relations index="rels" type="array">
-                                               <element index="tx_irretutorial_mnmmasym_price:3" type="array">
-                                                       <id>3</id>
-                                                       <table>tx_irretutorial_mnmmasym_price</table>
-                                               </element>
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                               <rec index="2" type="array">
-                                       <uid>2</uid>
-                                       <pid>1</pid>
-                                       <title>Offer 1.2 (m:n (MM) ASym)</title>
-                                       <size>280</size>
-                                       <relations index="rels" type="array">
-                                               <element index="tx_irretutorial_mnmmasym_price:2" type="array">
-                                                       <id>2</id>
-                                                       <table>tx_irretutorial_mnmmasym_price</table>
-                                               </element>
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                               <rec index="1" type="array">
-                                       <uid>1</uid>
-                                       <pid>1</pid>
-                                       <title>Offer 1.1 (m:n (MM) ASym)</title>
-                                       <size>280</size>
-                                       <relations index="rels" type="array">
-                                               <element index="tx_irretutorial_mnmmasym_price:1" type="array">
-                                                       <id>1</id>
-                                                       <table>tx_irretutorial_mnmmasym_price</table>
-                                               </element>
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                       </table>
-                       <table index="tx_irretutorial_mnmmasym_price" type="array">
-                               <rec index="3" type="array">
-                                       <uid>3</uid>
-                                       <pid>1</pid>
-                                       <title>Price (m:n (MM) ASym)</title>
-                                       <size>279</size>
-                                       <relations index="rels" type="array">
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                               <rec index="2" type="array">
-                                       <uid>2</uid>
-                                       <pid>1</pid>
-                                       <title>Price 1.2.2 (m:n (MM) ASym)</title>
-                                       <size>286</size>
-                                       <relations index="rels" type="array">
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                               <rec index="1" type="array">
-                                       <uid>1</uid>
-                                       <pid>1</pid>
-                                       <title>Price 1.1.1 (m:n (MM) ASym)</title>
-                                       <size>286</size>
-                                       <relations index="rels" type="array">
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                       </table>
-                       <table index="tx_irretutorial_mnsym_hotel" type="array">
-                               <rec index="2" type="array">
-                                       <uid>2</uid>
-                                       <pid>1</pid>
-                                       <title>Hotel Branch 1.1 (mm sym)</title>
-                                       <size>261</size>
-                                       <relations index="rels" type="array">
-                                               <element index="tx_irretutorial_mnsym_hotel_rel:1" type="array">
-                                                       <id>1</id>
-                                                       <table>tx_irretutorial_mnsym_hotel_rel</table>
-                                               </element>
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                               <rec index="3" type="array">
-                                       <uid>3</uid>
-                                       <pid>1</pid>
-                                       <title>Hotel branch 1.2 (mm sym)</title>
-                                       <size>261</size>
-                                       <relations index="rels" type="array">
-                                               <element index="tx_irretutorial_mnsym_hotel_rel:2" type="array">
-                                                       <id>2</id>
-                                                       <table>tx_irretutorial_mnsym_hotel_rel</table>
-                                               </element>
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                               <rec index="1" type="array">
-                                       <uid>1</uid>
-                                       <pid>1</pid>
-                                       <title>Hotel 1 (mm sym)</title>
-                                       <size>252</size>
-                                       <relations index="rels" type="array">
-                                               <element index="tx_irretutorial_mnsym_hotel_rel:1" type="array">
-                                                       <id>1</id>
-                                                       <table>tx_irretutorial_mnsym_hotel_rel</table>
-                                               </element>
-                                               <element index="tx_irretutorial_mnsym_hotel_rel:2" type="array">
-                                                       <id>2</id>
-                                                       <table>tx_irretutorial_mnsym_hotel_rel</table>
-                                               </element>
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                       </table>
-                       <table index="tx_irretutorial_mnsym_hotel_rel" type="array">
-                               <rec index="1" type="array">
-                                       <uid>1</uid>
-                                       <pid>1</pid>
-                                       <title>1</title>
-                                       <size>264</size>
-                                       <relations index="rels" type="array">
-                                               <element index="tx_irretutorial_mnsym_hotel:1" type="array">
-                                                       <id>1</id>
-                                                       <table>tx_irretutorial_mnsym_hotel</table>
-                                               </element>
-                                               <element index="tx_irretutorial_mnsym_hotel:2" type="array">
-                                                       <id>2</id>
-                                                       <table>tx_irretutorial_mnsym_hotel</table>
-                                               </element>
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                               <rec index="2" type="array">
-                                       <uid>2</uid>
-                                       <pid>1</pid>
-                                       <title>2</title>
-                                       <size>264</size>
-                                       <relations index="rels" type="array">
-                                               <element index="tx_irretutorial_mnsym_hotel:1" type="array">
-                                                       <id>1</id>
-                                                       <table>tx_irretutorial_mnsym_hotel</table>
-                                               </element>
-                                               <element index="tx_irretutorial_mnsym_hotel:3" type="array">
-                                                       <id>3</id>
-                                                       <table>tx_irretutorial_mnsym_hotel</table>
-                                               </element>
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                       </table>
-                       <table index="tx_irretutorial_mnattr_hotel" type="array">
-                               <rec index="1" type="array">
-                                       <uid>1</uid>
-                                       <pid>1</pid>
-                                       <title>Hotel 1 (m:n Attr)</title>
-                                       <size>252</size>
-                                       <relations index="rels" type="array">
-                                               <element index="tx_irretutorial_mnattr_hotel_offer_rel:1" type="array">
-                                                       <id>1</id>
-                                                       <table>tx_irretutorial_mnattr_hotel_offer_rel</table>
-                                               </element>
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                               <rec index="2" type="array">
-                                       <uid>2</uid>
-                                       <pid>1</pid>
-                                       <title>Hotel 2 (m:n Attr)</title>
-                                       <size>252</size>
-                                       <relations index="rels" type="array">
-                                               <element index="tx_irretutorial_mnattr_hotel_offer_rel:2" type="array">
-                                                       <id>2</id>
-                                                       <table>tx_irretutorial_mnattr_hotel_offer_rel</table>
-                                               </element>
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                       </table>
-                       <table index="tx_irretutorial_mnattr_hotel_offer_rel" type="array">
-                               <rec index="1" type="array">
-                                       <uid>1</uid>
-                                       <pid>1</pid>
-                                       <title>1</title>
-                                       <size>305</size>
-                                       <relations index="rels" type="array">
-                                               <element index="tx_irretutorial_mnattr_hotel:1" type="array">
-                                                       <id>1</id>
-                                                       <table>tx_irretutorial_mnattr_hotel</table>
-                                               </element>
-                                               <element index="tx_irretutorial_mnattr_offer:1" type="array">
-                                                       <id>1</id>
-                                                       <table>tx_irretutorial_mnattr_offer</table>
-                                               </element>
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                               <rec index="2" type="array">
-                                       <uid>2</uid>
-                                       <pid>1</pid>
-                                       <title>2</title>
-                                       <size>305</size>
-                                       <relations index="rels" type="array">
-                                               <element index="tx_irretutorial_mnattr_hotel:2" type="array">
-                                                       <id>2</id>
-                                                       <table>tx_irretutorial_mnattr_hotel</table>
-                                               </element>
-                                               <element index="tx_irretutorial_mnattr_offer:2" type="array">
-                                                       <id>2</id>
-                                                       <table>tx_irretutorial_mnattr_offer</table>
-                                               </element>
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                       </table>
-                       <table index="tx_irretutorial_mnattr_offer" type="array">
-                               <rec index="1" type="array">
-                                       <uid>1</uid>
-                                       <pid>1</pid>
-                                       <title>Offer 1 (m:n Attr)</title>
-                                       <size>252</size>
-                                       <relations index="rels" type="array">
-                                               <element index="tx_irretutorial_mnattr_hotel_offer_rel:1" type="array">
-                                                       <id>1</id>
-                                                       <table>tx_irretutorial_mnattr_hotel_offer_rel</table>
-                                               </element>
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                               <rec index="2" type="array">
-                                       <uid>2</uid>
-                                       <pid>1</pid>
-                                       <title>Offer 2 (m:n Attr)</title>
-                                       <size>252</size>
-                                       <relations index="rels" type="array">
-                                               <element index="tx_irretutorial_mnattr_hotel_offer_rel:2" type="array">
-                                                       <id>2</id>
-                                                       <table>tx_irretutorial_mnattr_hotel_offer_rel</table>
-                                               </element>
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                       </table>
-                       <table index="tx_irretutorial_1ncsv_hotel" type="array">
-                               <rec index="2" type="array">
-                                       <uid>2</uid>
-                                       <pid>1</pid>
-                                       <title>Hotel 2 (csv)</title>
-                                       <size>247</size>
-                                       <relations index="rels" type="array">
-                                               <element index="tx_irretutorial_1ncsv_offer:3" type="array">
-                                                       <id>3</id>
-                                                       <table>tx_irretutorial_1ncsv_offer</table>
-                                               </element>
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                               <rec index="1" type="array">
-                                       <uid>1</uid>
-                                       <pid>1</pid>
-                                       <title>Hotel 1 (csv)</title>
-                                       <size>249</size>
-                                       <relations index="rels" type="array">
-                                               <element index="tx_irretutorial_1ncsv_offer:1" type="array">
-                                                       <id>1</id>
-                                                       <table>tx_irretutorial_1ncsv_offer</table>
-                                               </element>
-                                               <element index="tx_irretutorial_1ncsv_offer:2" type="array">
-                                                       <id>2</id>
-                                                       <table>tx_irretutorial_1ncsv_offer</table>
-                                               </element>
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                       </table>
-                       <table index="tx_irretutorial_1ncsv_offer" type="array">
-                               <rec index="3" type="array">
-                                       <uid>3</uid>
-                                       <pid>1</pid>
-                                       <title>Offer 2.2 (csv)</title>
-                                       <size>248</size>
-                                       <relations index="rels" type="array">
-                                               <element index="tx_irretutorial_1ncsv_price:3" type="array">
-                                                       <id>3</id>
-                                                       <table>tx_irretutorial_1ncsv_price</table>
-                                               </element>
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                               <rec index="2" type="array">
-                                       <uid>2</uid>
-                                       <pid>1</pid>
-                                       <title>Offer 1.2 (csv)</title>
-                                       <size>249</size>
-                                       <relations index="rels" type="array">
-                                               <element index="tx_irretutorial_1ncsv_price:2" type="array">
-                                                       <id>2</id>
-                                                       <table>tx_irretutorial_1ncsv_price</table>
-                                               </element>
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                               <rec index="1" type="array">
-                                       <uid>1</uid>
-                                       <pid>1</pid>
-                                       <title>Offer 1.1 (csv)</title>
-                                       <size>249</size>
-                                       <relations index="rels" type="array">
-                                               <element index="tx_irretutorial_1ncsv_price:1" type="array">
-                                                       <id>1</id>
-                                                       <table>tx_irretutorial_1ncsv_price</table>
-                                               </element>
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                       </table>
-                       <table index="tx_irretutorial_1ncsv_price" type="array">
-                               <rec index="3" type="array">
-                                       <uid>3</uid>
-                                       <pid>1</pid>
-                                       <title>Price 2.2.1 (csv)</title>
-                                       <size>254</size>
-                                       <relations index="rels" type="array">
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                               <rec index="2" type="array">
-                                       <uid>2</uid>
-                                       <pid>1</pid>
-                                       <title>Price 1.2.1 (csv)</title>
-                                       <size>254</size>
-                                       <relations index="rels" type="array">
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                               <rec index="1" type="array">
-                                       <uid>1</uid>
-                                       <pid>1</pid>
-                                       <title>Price 1.1.1 (csv)</title>
-                                       <size>255</size>
-                                       <relations index="rels" type="array">
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                       </table>
-               </records>
-               <pid_lookup type="array">
-                       <page_contents index="0" type="array">
-                               <table index="pages" type="array">
-                                       <item index="1">1</item>
-                               </table>
-                       </page_contents>
-                       <page_contents index="1" type="array">
-                               <table index="tt_content" type="array">
-                                       <item index="1">1</item>
-                               </table>
-                               <table index="tx_irretutorial_1nff_hotel" type="array">
-                                       <item index="1">1</item>
-                                       <item index="2">1</item>
-                               </table>
-                               <table index="tx_irretutorial_1nff_offer" type="array">
-                                       <item index="1">1</item>
-                                       <item index="3">1</item>
-                                       <item index="2">1</item>
-                               </table>
-                               <table index="tx_irretutorial_1nff_price" type="array">
-                                       <item index="1">1</item>
-                                       <item index="3">1</item>
-                                       <item index="4">1</item>
-                                       <item index="2">1</item>
-                               </table>
-                               <table index="tx_irretutorial_mnasym_hotel" type="array">
-                                       <item index="1">1</item>
-                               </table>
-                               <table index="tx_irretutorial_mnasym_hotel_offer_rel" type="array">
-                                       <item index="1">1</item>
-                                       <item index="2">1</item>
-                               </table>
-                               <table index="tx_irretutorial_mnasym_offer" type="array">
-                                       <item index="2">1</item>
-                                       <item index="1">1</item>
-                               </table>
-                               <table index="tx_irretutorial_mnasym_price" type="array">
-                                       <item index="1">1</item>
-                                       <item index="2">1</item>
-                               </table>
-                               <table index="tx_irretutorial_mnmmasym_hotel" type="array">
-                                       <item index="1">1</item>
-                                       <item index="2">1</item>
-                               </table>
-                               <table index="tx_irretutorial_mnmmasym_offer" type="array">
-                                       <item index="3">1</item>
-                                       <item index="2">1</item>
-                                       <item index="1">1</item>
-                               </table>
-                               <table index="tx_irretutorial_mnmmasym_price" type="array">
-                                       <item index="3">1</item>
-                                       <item index="2">1</item>
-                                       <item index="1">1</item>
-                               </table>
-                               <table index="tx_irretutorial_mnsym_hotel" type="array">
-                                       <item index="2">1</item>
-                                       <item index="3">1</item>
-                                       <item index="1">1</item>
-                               </table>
-                               <table index="tx_irretutorial_mnsym_hotel_rel" type="array">
-                                       <item index="1">1</item>
-                                       <item index="2">1</item>
-                               </table>
-                               <table index="tx_irretutorial_mnattr_hotel" type="array">
-                                       <item index="1">1</item>
-                                       <item index="2">1</item>
-                               </table>
-                               <table index="tx_irretutorial_mnattr_hotel_offer_rel" type="array">
-                                       <item index="1">1</item>
-                                       <item index="2">1</item>
-                               </table>
-                               <table index="tx_irretutorial_mnattr_offer" type="array">
-                                       <item index="1">1</item>
-                                       <item index="2">1</item>
-                               </table>
-                               <table index="tx_irretutorial_1ncsv_hotel" type="array">
-                                       <item index="2">1</item>
-                                       <item index="1">1</item>
-                               </table>
-                               <table index="tx_irretutorial_1ncsv_offer" type="array">
-                                       <item index="3">1</item>
-                                       <item index="2">1</item>
-                                       <item index="1">1</item>
-                               </table>
-                               <table index="tx_irretutorial_1ncsv_price" type="array">
-                                       <item index="3">1</item>
-                                       <item index="2">1</item>
-                                       <item index="1">1</item>
-                               </table>
-                       </page_contents>
-               </pid_lookup>
-               <pagetree type="array">
-                       <node index="1" type="array">
-                               <uid>1</uid>
-                       </node>
-               </pagetree>
-       </header>
-       <records type="array">
-               <tablerow index="pages:1" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">1</field>
-                               <field index="pid">0</field>
-                               <field index="deleted">0</field>
-                               <field index="perms_everybody">15</field>
-                               <field index="hidden">0</field>
-                               <field index="title">IRRE</field>
-                               <field index="doktype">1</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                       </related>
-               </tablerow>
-               <tablerow index="tt_content:1" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">1</field>
-                               <field index="pid">1</field>
-                               <field index="t3ver_oid">0</field>
-                               <field index="hidden">0</field>
-                               <field index="CType">text</field>
-                               <field index="header">Test content</field>
-                               <field index="deleted">0</field>
-                               <field index="tx_irretutorial_1nff_hotels">2</field>
-                               <field index="tx_irretutorial_1ncsv_hotels">1,2</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                               <field index="tx_irretutorial_1nff_hotels" type="array">
-                                       <type>db</type>
-                                       <relations index="itemArray" type="array">
-                                               <element index="0" type="array">
-                                                       <id>1</id>
-                                                       <table>tx_irretutorial_1nff_hotel</table>
-                                               </element>
-                                               <element index="1" type="array">
-                                                       <id>2</id>
-                                                       <table>tx_irretutorial_1nff_hotel</table>
-                                               </element>
-                                       </relations>
-                               </field>
-                               <field index="tx_irretutorial_1ncsv_hotels" type="array">
-                                       <type>db</type>
-                                       <relations index="itemArray" type="array">
-                                               <element index="0" type="array">
-                                                       <id>1</id>
-                                                       <table>tx_irretutorial_1ncsv_hotel</table>
-                                               </element>
-                                               <element index="1" type="array">
-                                                       <id>2</id>
-                                                       <table>tx_irretutorial_1ncsv_hotel</table>
-                                               </element>
-                                       </relations>
-                               </field>
-                       </related>
-               </tablerow>
-               <tablerow index="tx_irretutorial_1nff_hotel:1" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">1</field>
-                               <field index="pid">1</field>
-                               <field index="cruser_id">1</field>
-                               <field index="sys_language_uid">0</field>
-                               <field index="l18n_parent">0</field>
-                               <field index="sorting">1</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
-                               <field index="parentid">1</field>
-                               <field index="parenttable">tt_content</field>
-                               <field index="parentidentifier"></field>
-                               <field index="title">Hotel 1 (nff)</field>
-                               <field index="offers">2</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                               <field index="offers" type="array">
-                                       <type>db</type>
-                                       <relations index="itemArray" type="array">
-                                               <element index="0" type="array">
-                                                       <id>1</id>
-                                                       <table>tx_irretutorial_1nff_offer</table>
-                                               </element>
-                                               <element index="1" type="array">
-                                                       <id>2</id>
-                                                       <table>tx_irretutorial_1nff_offer</table>
-                                               </element>
-                                       </relations>
-                               </field>
-                       </related>
-               </tablerow>
-               <tablerow index="tx_irretutorial_1nff_hotel:2" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">2</field>
-                               <field index="pid">1</field>
-                               <field index="cruser_id">1</field>
-                               <field index="sys_language_uid">0</field>
-                               <field index="l18n_parent">0</field>
-                               <field index="sorting">2</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
-                               <field index="parentid">1</field>
-                               <field index="parenttable">tt_content</field>
-                               <field index="parentidentifier"></field>
-                               <field index="title">Hotel 2 (nff)</field>
-                               <field index="offers">1</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                               <field index="offers" type="array">
-                                       <type>db</type>
-                                       <relations index="itemArray" type="array">
-                                               <element index="0" type="array">
-                                                       <id>3</id>
-                                                       <table>tx_irretutorial_1nff_offer</table>
-                                               </element>
-                                       </relations>
-                               </field>
-                       </related>
-               </tablerow>
-               <tablerow index="tx_irretutorial_1nff_offer:1" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">1</field>
-                               <field index="pid">1</field>
-                               <field index="cruser_id">1</field>
-                               <field index="sys_language_uid">0</field>
-                               <field index="l18n_parent">0</field>
-                               <field index="sorting">1</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
-                               <field index="parentid">1</field>
-                               <field index="parenttable">tx_irretutorial_1nff_hotel</field>
-                               <field index="parentidentifier"></field>
-                               <field index="title">Offer 1.1 (nff)</field>
-                               <field index="prices">2</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                               <field index="prices" type="array">
-                                       <type>db</type>
-                                       <relations index="itemArray" type="array">
-                                               <element index="0" type="array">
-                                                       <id>1</id>
-                                                       <table>tx_irretutorial_1nff_price</table>
-                                               </element>
-                                               <element index="1" type="array">
-                                                       <id>2</id>
-                                                       <table>tx_irretutorial_1nff_price</table>
-                                               </element>
-                                       </relations>
-                               </field>
-                       </related>
-               </tablerow>
-               <tablerow index="tx_irretutorial_1nff_offer:3" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">3</field>
-                               <field index="pid">1</field>
-                               <field index="cruser_id">1</field>
-                               <field index="sys_language_uid">0</field>
-                               <field index="l18n_parent">0</field>
-                               <field index="sorting">1</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
-                               <field index="parentid">2</field>
-                               <field index="parenttable">tx_irretutorial_1nff_hotel</field>
-                               <field index="parentidentifier"></field>
-                               <field index="title">Offer 2.1 (nff)</field>
-                               <field index="prices">1</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                               <field index="prices" type="array">
-                                       <type>db</type>
-                                       <relations index="itemArray" type="array">
-                                               <element index="0" type="array">
-                                                       <id>4</id>
-                                                       <table>tx_irretutorial_1nff_price</table>
-                                               </element>
-                                       </relations>
-                               </field>
-                       </related>
-               </tablerow>
-               <tablerow index="tx_irretutorial_1nff_offer:2" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">2</field>
-                               <field index="pid">1</field>
-                               <field index="cruser_id">1</field>
-                               <field index="sys_language_uid">0</field>
-                               <field index="l18n_parent">0</field>
-                               <field index="sorting">2</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
-                               <field index="parentid">1</field>
-                               <field index="parenttable">tx_irretutorial_1nff_hotel</field>
-                               <field index="parentidentifier"></field>
-                               <field index="title">Offer 1.2 (nff)</field>
-                               <field index="prices">1</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                               <field index="prices" type="array">
-                                       <type>db</type>
-                                       <relations index="itemArray" type="array">
-                                               <element index="0" type="array">
-                                                       <id>3</id>
-                                                       <table>tx_irretutorial_1nff_price</table>
-                                               </element>
-                                       </relations>
-                               </field>
-                       </related>
-               </tablerow>
-               <tablerow index="tx_irretutorial_1nff_price:1" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">1</field>
-                               <field index="pid">1</field>
-                               <field index="cruser_id">1</field>
-                               <field index="sys_language_uid">0</field>
-                               <field index="l18n_parent">0</field>
-                               <field index="sorting">1</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
-                               <field index="parentid">1</field>
-                               <field index="parenttable">tx_irretutorial_1nff_offer</field>
-                               <field index="parentidentifier"></field>
-                               <field index="title">Price 1.1.1 (nff)</field>
-                               <field index="price">4.00</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                       </related>
-               </tablerow>
-               <tablerow index="tx_irretutorial_1nff_price:3" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">3</field>
-                               <field index="pid">1</field>
-                               <field index="cruser_id">1</field>
-                               <field index="sys_language_uid">0</field>
-                               <field index="l18n_parent">0</field>
-                               <field index="sorting">1</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
-                               <field index="parentid">2</field>
-                               <field index="parenttable">tx_irretutorial_1nff_offer</field>
-                               <field index="parentidentifier"></field>
-                               <field index="title">Price 1.2.1 (nff)</field>
-                               <field index="price">678.00</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                       </related>
-               </tablerow>
-               <tablerow index="tx_irretutorial_1nff_price:4" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">4</field>
-                               <field index="pid">1</field>
-                               <field index="cruser_id">1</field>
-                               <field index="sys_language_uid">0</field>
-                               <field index="l18n_parent">0</field>
-                               <field index="sorting">1</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
-                               <field index="parentid">3</field>
-                               <field index="parenttable">tx_irretutorial_1nff_offer</field>
-                               <field index="parentidentifier"></field>
-                               <field index="title">Price 2.1.1 (nff)</field>
-                               <field index="price">5467567.00</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                       </related>
-               </tablerow>
-               <tablerow index="tx_irretutorial_1nff_price:2" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">2</field>
-                               <field index="pid">1</field>
-                               <field index="cruser_id">1</field>
-                               <field index="sys_language_uid">0</field>
-                               <field index="l18n_parent">0</field>
-                               <field index="sorting">2</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
-                               <field index="parentid">1</field>
-                               <field index="parenttable">tx_irretutorial_1nff_offer</field>
-                               <field index="parentidentifier"></field>
-                               <field index="title">Price 1.1.2 (nff)</field>
-                               <field index="price">869.00</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                       </related>
-               </tablerow>
-               <tablerow index="tx_irretutorial_mnasym_hotel:1" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">1</field>
-                               <field index="pid">1</field>
-                               <field index="cruser_id">1</field>
-                               <field index="sys_language_uid">0</field>
-                               <field index="l18n_parent">0</field>
-                               <field index="sorting">256</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
-                               <field index="title">Hotel 1 (m:n ASym)</field>
-                               <field index="offers">2</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                               <field index="offers" type="array">
-                                       <type>db</type>
-                                       <relations index="itemArray" type="array">
-                                               <element index="0" type="array">
-                                                       <id>2</id>
-                                                       <table>tx_irretutorial_mnasym_hotel_offer_rel</table>
-                                               </element>
-                                               <element index="1" type="array">
-                                                       <id>1</id>
-                                                       <table>tx_irretutorial_mnasym_hotel_offer_rel</table>
-                                               </element>
-                                       </relations>
-                               </field>
-                       </related>
-               </tablerow>
-               <tablerow index="tx_irretutorial_mnasym_hotel_offer_rel:1" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">1</field>
-                               <field index="pid">1</field>
-                               <field index="cruser_id">1</field>
-                               <field index="sys_language_uid">0</field>
-                               <field index="l18n_parent">0</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
-                               <field index="hotelid">1</field>
-                               <field index="offerid">2</field>
-                               <field index="hotelsort">2</field>
-                               <field index="offersort">1</field>
-                               <field index="prices">1</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                               <field index="hotelid" type="array">
-                                       <type>db</type>
-                                       <relations index="itemArray" type="array">
-                                               <element index="0" type="array">
-                                                       <id>1</id>
-                                                       <table>tx_irretutorial_mnasym_hotel</table>
-                                               </element>
-                                       </relations>
-                               </field>
-                               <field index="offerid" type="array">
-                                       <type>db</type>
-                                       <relations index="itemArray" type="array">
-                                               <element index="0" type="array">
-                                                       <id>2</id>
-                                                       <table>tx_irretutorial_mnasym_offer</table>
-                                               </element>
-                                       </relations>
-                               </field>
-                               <field index="prices" type="array">
-                                       <type>db</type>
-                                       <relations index="itemArray" type="array">
-                                               <element index="0" type="array">
-                                                       <id>1</id>
-                                                       <table>tx_irretutorial_mnasym_price</table>
-                                               </element>
-                                       </relations>
-                               </field>
-                       </related>
-               </tablerow>
-               <tablerow index="tx_irretutorial_mnasym_hotel_offer_rel:2" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">2</field>
-                               <field index="pid">1</field>
-                               <field index="cruser_id">1</field>
-                               <field index="sys_language_uid">0</field>
-                               <field index="l18n_parent">0</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
-                               <field index="hotelid">1</field>
-                               <field index="offerid">1</field>
-                               <field index="hotelsort">1</field>
-                               <field index="offersort">1</field>
-                               <field index="prices">1</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                               <field index="hotelid" type="array">
-                                       <type>db</type>
-                                       <relations index="itemArray" type="array">
-                                               <element index="0" type="array">
-                                                       <id>1</id>
-                                                       <table>tx_irretutorial_mnasym_hotel</table>
-                                               </element>
-                                       </relations>
-                               </field>
-                               <field index="offerid" type="array">
-                                       <type>db</type>
-                                       <relations index="itemArray" type="array">
-                                               <element index="0" type="array">
-                                                       <id>1</id>
-                                                       <table>tx_irretutorial_mnasym_offer</table>
-                                               </element>
-                                       </relations>
-                               </field>
-                               <field index="prices" type="array">
-                                       <type>db</type>
-                                       <relations index="itemArray" type="array">
-                                               <element index="0" type="array">
-                                                       <id>2</id>
-                                                       <table>tx_irretutorial_mnasym_price</table>
-                                               </element>
-                                       </relations>
-                               </field>
-                       </related>
-               </tablerow>
-               <tablerow index="tx_irretutorial_mnasym_offer:2" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">2</field>
-                               <field index="pid">1</field>
-                               <field index="cruser_id">1</field>
-                               <field index="sys_language_uid">0</field>
-                               <field index="l18n_parent">0</field>
-                               <field index="sorting">128</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
-                               <field index="title">Offer 2 (m:n ASym)</field>
-                               <field index="hotels">1</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                               <field index="hotels" type="array">
-                                       <type>db</type>
-                                       <relations index="itemArray" type="array">
-                                               <element index="0" type="array">
-                                                       <id>1</id>
-                                                       <table>tx_irretutorial_mnasym_hotel_offer_rel</table>
-                                               </element>
-                                       </relations>
-                               </field>
-                       </related>
-               </tablerow>
-               <tablerow index="tx_irretutorial_mnasym_offer:1" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">1</field>
-                               <field index="pid">1</field>
-                               <field index="cruser_id">1</field>
-                               <field index="sys_language_uid">0</field>
-                               <field index="l18n_parent">0</field>
-                               <field index="sorting">256</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
-                               <field index="title">Offer 1 (m:n ASym)</field>
-                               <field index="hotels">1</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                               <field index="hotels" type="array">
-                                       <type>db</type>
-                                       <relations index="itemArray" type="array">
-                                               <element index="0" type="array">
-                                                       <id>2</id>
-                                                       <table>tx_irretutorial_mnasym_hotel_offer_rel</table>
-                                               </element>
-                                       </relations>
-                               </field>
-                       </related>
-               </tablerow>
-               <tablerow index="tx_irretutorial_mnasym_price:1" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">1</field>
-                               <field index="pid">1</field>
-                               <field index="cruser_id">1</field>
-                               <field index="sys_language_uid">0</field>
-                               <field index="l18n_parent">0</field>
-                               <field index="sorting">1</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
-                               <field index="parentid">1</field>
-                               <field index="title">Price 1 1:2 (m:n ASym)</field>
-                               <field index="price">678.00</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                       </related>
-               </tablerow>
-               <tablerow index="tx_irretutorial_mnasym_price:2" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">2</field>
-                               <field index="pid">1</field>
-                               <field index="cruser_id">1</field>
-                               <field index="sys_language_uid">0</field>
-                               <field index="l18n_parent">0</field>
-                               <field index="sorting">1</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
-                               <field index="parentid">2</field>
-                               <field index="title">Price 2 1:1 (m:n ASym)</field>
-                               <field index="price">45.00</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                       </related>
-               </tablerow>
-               <tablerow index="tx_irretutorial_mnmmasym_hotel:1" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">1</field>
-                               <field index="pid">1</field>
-                               <field index="cruser_id">1</field>
-                               <field index="sys_language_uid">0</field>
-                               <field index="l18n_parent">0</field>
-                               <field index="sorting">256</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
-                               <field index="title">Hotel 1 (m:n (MM) ASym)</field>
-                               <field index="offers">2</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                               <field index="offers" type="array">
-                                       <type>db</type>
-                                       <relations index="itemArray" type="array">
-                                               <element index="0" type="array">
-                                                       <id>1</id>
-                                                       <table>tx_irretutorial_mnmmasym_offer</table>
-                                               </element>
-                                               <element index="1" type="array">
-                                                       <id>2</id>
-                                                       <table>tx_irretutorial_mnmmasym_offer</table>
-                                               </element>
-                                       </relations>
-                               </field>
-                       </related>
-               </tablerow>
-               <tablerow index="tx_irretutorial_mnmmasym_hotel:2" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">2</field>
-                               <field index="pid">1</field>
-                               <field index="cruser_id">1</field>
-                               <field index="sys_language_uid">0</field>
-                               <field index="l18n_parent">0</field>
-                               <field index="sorting">512</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
-                               <field index="title">Hotel 2 (m:n (MM) ASym)</field>
-                               <field index="offers">1</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                               <field index="offers" type="array">
-                                       <type>db</type>
-                                       <relations index="itemArray" type="array">
-                                               <element index="0" type="array">
-                                                       <id>3</id>
-                                                       <table>tx_irretutorial_mnmmasym_offer</table>
-                                               </element>
-                                       </relations>
-                               </field>
-                       </related>
-               </tablerow>
-               <tablerow index="tx_irretutorial_mnmmasym_offer:3" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">3</field>
-                               <field index="pid">1</field>
-                               <field index="cruser_id">1</field>
-                               <field index="sys_language_uid">0</field>
-                               <field index="l18n_parent">0</field>
-                               <field index="sorting">64</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
-                               <field index="title">Offer 2.1 (m:n (MM) ASym)</field>
-                               <field index="hotels">0</field>
-                               <field index="prices">1</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                               <field index="prices" type="array">
-                                       <type>db</type>
-                                       <relations index="itemArray" type="array">
-                                               <element index="0" type="array">
-                                                       <id>3</id>
-                                                       <table>tx_irretutorial_mnmmasym_price</table>
-                                               </element>
-                                       </relations>
-                               </field>
-                       </related>
-               </tablerow>
-               <tablerow index="tx_irretutorial_mnmmasym_offer:2" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">2</field>
-                               <field index="pid">1</field>
-                               <field index="cruser_id">1</field>
-                               <field index="sys_language_uid">0</field>
-                               <field index="l18n_parent">0</field>
-                               <field index="sorting">128</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
-                               <field index="title">Offer 1.2 (m:n (MM) ASym)</field>
-                               <field index="hotels">0</field>
-                               <field index="prices">1</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                               <field index="prices" type="array">
-                                       <type>db</type>
-                                       <relations index="itemArray" type="array">
-                                               <element index="0" type="array">
-                                                       <id>2</id>
-                                                       <table>tx_irretutorial_mnmmasym_price</table>
-                                               </element>
-                                       </relations>
-                               </field>
-                       </related>
-               </tablerow>
-               <tablerow index="tx_irretutorial_mnmmasym_offer:1" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">1</field>
-                               <field index="pid">1</field>
-                               <field index="cruser_id">1</field>
-                               <field index="sys_language_uid">0</field>
-                               <field index="l18n_parent">0</field>
-                               <field index="sorting">256</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
-                               <field index="title">Offer 1.1 (m:n (MM) ASym)</field>
-                               <field index="hotels">0</field>
-                               <field index="prices">1</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                               <field index="prices" type="array">
-                                       <type>db</type>
-                                       <relations index="itemArray" type="array">
-                                               <element index="0" type="array">
-                                                       <id>1</id>
-                                                       <table>tx_irretutorial_mnmmasym_price</table>
-                                               </element>
-                                       </relations>
-                               </field>
-                       </related>
-               </tablerow>
-               <tablerow index="tx_irretutorial_mnmmasym_price:3" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">3</field>
-                               <field index="pid">1</field>
-                               <field index="cruser_id">1</field>
-                               <field index="sys_language_uid">0</field>
-                               <field index="l18n_parent">0</field>
-                               <field index="sorting">64</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
-                               <field index="title">Price (m:n (MM) ASym)</field>
-                               <field index="price">223.00</field>
-                               <field index="offers">0</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                       </related>
-               </tablerow>
-               <tablerow index="tx_irretutorial_mnmmasym_price:2" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">2</field>
-                               <field index="pid">1</field>
-                               <field index="cruser_id">1</field>
-                               <field index="sys_language_uid">0</field>
-                               <field index="l18n_parent">0</field>
-                               <field index="sorting">128</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
-                               <field index="title">Price 1.2.2 (m:n (MM) ASym)</field>
-                               <field index="price">567.00</field>
-                               <field index="offers">0</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                       </related>
-               </tablerow>
-               <tablerow index="tx_irretutorial_mnmmasym_price:1" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">1</field>
-                               <field index="pid">1</field>
-                               <field index="cruser_id">1</field>
-                               <field index="sys_language_uid">0</field>
-                               <field index="l18n_parent">0</field>
-                               <field index="sorting">256</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
-                               <field index="title">Price 1.1.1 (m:n (MM) ASym)</field>
-                               <field index="price">567.00</field>
-                               <field index="offers">0</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                       </related>
-               </tablerow>
-               <tablerow index="tx_irretutorial_mnsym_hotel:2" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">2</field>
-                               <field index="pid">1</field>
-                               <field index="cruser_id">1</field>
-                               <field index="sys_language_uid">0</field>
-                               <field index="l18n_parent">0</field>
-                               <field index="sorting">128</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
-                               <field index="title">Hotel Branch 1.1 (mm sym)</field>
-                               <field index="branches">1</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                               <field index="branches" type="array">
-                                       <type>db</type>
-                                       <relations index="itemArray" type="array">
-                                               <element index="0" type="array">
-                                                       <id>1</id>
-                                                       <table>tx_irretutorial_mnsym_hotel_rel</table>
-                                               </element>
-                                       </relations>
-                               </field>
-                       </related>
-               </tablerow>
-               <tablerow index="tx_irretutorial_mnsym_hotel:3" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">3</field>
-                               <field index="pid">1</field>
-                               <field index="cruser_id">1</field>
-                               <field index="sys_language_uid">0</field>
-                               <field index="l18n_parent">0</field>
-                               <field index="sorting">192</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
-                               <field index="title">Hotel branch 1.2 (mm sym)</field>
-                               <field index="branches">0</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                               <field index="branches" type="array">
-                                       <type>db</type>
-                                       <relations index="itemArray" type="array">
-                                               <element index="0" type="array">
-                                                       <id>2</id>
-                                                       <table>tx_irretutorial_mnsym_hotel_rel</table>
-                                               </element>
-                                       </relations>
-                               </field>
-                       </related>
-               </tablerow>
-               <tablerow index="tx_irretutorial_mnsym_hotel:1" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">1</field>
-                               <field index="pid">1</field>
-                               <field index="cruser_id">1</field>
-                               <field index="sys_language_uid">0</field>
-                               <field index="l18n_parent">0</field>
-                               <field index="sorting">256</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
-                               <field index="title">Hotel 1 (mm sym)</field>
-                               <field index="branches">2</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                               <field index="branches" type="array">
-                                       <type>db</type>
-                                       <relations index="itemArray" type="array">
-                                               <element index="0" type="array">
-                                                       <id>1</id>
-                                                       <table>tx_irretutorial_mnsym_hotel_rel</table>
-                                               </element>
-                                               <element index="1" type="array">
-                                                       <id>2</id>
-                                                       <table>tx_irretutorial_mnsym_hotel_rel</table>
-                                               </element>
-                                       </relations>
-                               </field>
-                       </related>
-               </tablerow>
-               <tablerow index="tx_irretutorial_mnsym_hotel_rel:1" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">1</field>
-                               <field index="pid">1</field>
-                               <field index="cruser_id">1</field>
-                               <field index="sys_language_uid">0</field>
-                               <field index="l18n_parent">0</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
-                               <field index="hotelid">1</field>
-                               <field index="branchid">2</field>
-                               <field index="hotelsort">1</field>
-                               <field index="branchsort">1</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                               <field index="hotelid" type="array">
-                                       <type>db</type>
-                                       <relations index="itemArray" type="array">
-                                               <element index="0" type="array">
-                                                       <id>1</id>
-                                                       <table>tx_irretutorial_mnsym_hotel</table>
-                                               </element>
-                                       </relations>
-                               </field>
-                               <field index="branchid" type="array">
-                                       <type>db</type>
-                                       <relations index="itemArray" type="array">
-                                               <element index="0" type="array">
-                                                       <id>2</id>
-                                                       <table>tx_irretutorial_mnsym_hotel</table>
-                                               </element>
-                                       </relations>
-                               </field>
-                       </related>
-               </tablerow>
-               <tablerow index="tx_irretutorial_mnsym_hotel_rel:2" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">2</field>
-                               <field index="pid">1</field>
-                               <field index="cruser_id">1</field>
-                               <field index="sys_language_uid">0</field>
-                               <field index="l18n_parent">0</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
-                               <field index="hotelid">1</field>
-                               <field index="branchid">3</field>
-                               <field index="hotelsort">2</field>
-                               <field index="branchsort">0</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                               <field index="hotelid" type="array">
-                                       <type>db</type>
-                                       <relations index="itemArray" type="array">
-                                               <element index="0" type="array">
-                                                       <id>1</id>
-                                                       <table>tx_irretutorial_mnsym_hotel</table>
-                                               </element>
-                                       </relations>
-                               </field>
-                               <field index="branchid" type="array">
-                                       <type>db</type>
-                                       <relations index="itemArray" type="array">
-                                               <element index="0" type="array">
-                                                       <id>3</id>
-                                                       <table>tx_irretutorial_mnsym_hotel</table>
-                                               </element>
-                                       </relations>
-                               </field>
-                       </related>
-               </tablerow>
-               <tablerow index="tx_irretutorial_mnattr_hotel:1" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">1</field>
-                               <field index="pid">1</field>
-                               <field index="cruser_id">1</field>
-                               <field index="sys_language_uid">0</field>
-                               <field index="l18n_parent">0</field>
-                               <field index="sorting">256</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
-                               <field index="title">Hotel 1 (m:n Attr)</field>
-                               <field index="offers">1</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                               <field index="offers" type="array">
-                                       <type>db</type>
-                                       <relations index="itemArray" type="array">
-                                               <element index="0" type="array">
-                                                       <id>1</id>
-                                                       <table>tx_irretutorial_mnattr_hotel_offer_rel</table>
-                                               </element>
-                                       </relations>
-                               </field>
-                       </related>
-               </tablerow>
-               <tablerow index="tx_irretutorial_mnattr_hotel:2" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">2</field>
-                               <field index="pid">1</field>
-                               <field index="cruser_id">1</field>
-                               <field index="sys_language_uid">0</field>
-                               <field index="l18n_parent">0</field>
-                               <field index="sorting">512</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
-                               <field index="title">Hotel 2 (m:n Attr)</field>
-                               <field index="offers">1</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                               <field index="offers" type="array">
-                                       <type>db</type>
-                                       <relations index="itemArray" type="array">
-                                               <element index="0" type="array">
-                                                       <id>2</id>
-                                                       <table>tx_irretutorial_mnattr_hotel_offer_rel</table>
-                                               </element>
-                                       </relations>
-                               </field>
-                       </related>
-               </tablerow>
-               <tablerow index="tx_irretutorial_mnattr_hotel_offer_rel:1" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">1</field>
-                               <field index="pid">1</field>
-                               <field index="cruser_id">1</field>
-                               <field index="sys_language_uid">0</field>
-                               <field index="l18n_parent">0</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
-                               <field index="hotelid">1</field>
-                               <field index="offerid">1</field>
-                               <field index="hotelsort">1</field>
-                               <field index="offersort">0</field>
-                               <field index="quality">2</field>
-                               <field index="allincl">1</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                               <field index="hotelid" type="array">
-                                       <type>db</type>
-                                       <relations index="itemArray" type="array">
-                                               <element index="0" type="array">
-                                                       <id>1</id>
-                                                       <table>tx_irretutorial_mnattr_hotel</table>
-                                               </element>
-                                       </relations>
-                               </field>
-                               <field index="offerid" type="array">
-                                       <type>db</type>
-                                       <relations index="itemArray" type="array">
-                                               <element index="0" type="array">
-                                                       <id>1</id>
-                                                       <table>tx_irretutorial_mnattr_offer</table>
-                                               </element>
-                                       </relations>
-                               </field>
-                       </related>
-               </tablerow>
-               <tablerow index="tx_irretutorial_mnattr_hotel_offer_rel:2" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">2</field>
-                               <field index="pid">1</field>
-                               <field index="cruser_id">1</field>
-                               <field index="sys_language_uid">0</field>
-                               <field index="l18n_parent">0</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
-                               <field index="hotelid">2</field>
-                               <field index="offerid">2</field>
-                               <field index="hotelsort">1</field>
-                               <field index="offersort">0</field>
-                               <field index="quality">4</field>
-                               <field index="allincl">0</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                               <field index="hotelid" type="array">
-                                       <type>db</type>
-                                       <relations index="itemArray" type="array">
-                                               <element index="0" type="array">
-                                                       <id>2</id>
-                                                       <table>tx_irretutorial_mnattr_hotel</table>
-                                               </element>
-                                       </relations>
-                               </field>
-                               <field index="offerid" type="array">
-                                       <type>db</type>
-                                       <relations index="itemArray" type="array">
-                                               <element index="0" type="array">
-                                                       <id>2</id>
-                                                       <table>tx_irretutorial_mnattr_offer</table>
-                                               </element>
-                                       </relations>
-                               </field>
-                       </related>
-               </tablerow>
-               <tablerow index="tx_irretutorial_mnattr_offer:1" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">1</field>
-                               <field index="pid">1</field>
-                               <field index="cruser_id">1</field>
-                               <field index="sys_language_uid">0</field>
-                               <field index="l18n_parent">0</field>
-                               <field index="sorting">256</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
-                               <field index="title">Offer 1 (m:n Attr)</field>
-                               <field index="hotels">0</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                               <field index="hotels" type="array">
-                                       <type>db</type>
-                                       <relations index="itemArray" type="array">
-                                               <element index="0" type="array">
-                                                       <id>1</id>
-                                                       <table>tx_irretutorial_mnattr_hotel_offer_rel</table>
-                                               </element>
-                                       </relations>
-                               </field>
-                       </related>
-               </tablerow>
-               <tablerow index="tx_irretutorial_mnattr_offer:2" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">2</field>
-                               <field index="pid">1</field>
-                               <field index="cruser_id">1</field>
-                               <field index="sys_language_uid">0</field>
-                               <field index="l18n_parent">0</field>
-                               <field index="sorting">512</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
-                               <field index="title">Offer 2 (m:n Attr)</field>
-                               <field index="hotels">0</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                               <field index="hotels" type="array">
-                                       <type>db</type>
-                                       <relations index="itemArray" type="array">
-                                               <element index="0" type="array">
-                                                       <id>2</id>
-                                                       <table>tx_irretutorial_mnattr_hotel_offer_rel</table>
-                                               </element>
-                                       </relations>
-                               </field>
-                       </related>
-               </tablerow>
-               <tablerow index="tx_irretutorial_1ncsv_hotel:2" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">2</field>
-                               <field index="pid">1</field>
-                               <field index="cruser_id">1</field>
-                               <field index="sys_language_uid">0</field>
-                               <field index="l18n_parent">0</field>
-                               <field index="sorting">128</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
-                               <field index="title">Hotel 2 (csv)</field>
-                               <field index="offers">3</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                               <field index="offers" type="array">
-                                       <type>db</type>
-                                       <relations index="itemArray" type="array">
-                                               <element index="0" type="array">
-                                                       <id>3</id>
-                                                       <table>tx_irretutorial_1ncsv_offer</table>
-                                               </element>
-                                       </relations>
-                               </field>
-                       </related>
-               </tablerow>
-               <tablerow index="tx_irretutorial_1ncsv_hotel:1" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">1</field>
-                               <field index="pid">1</field>
-                               <field index="cruser_id">1</field>
-                               <field index="sys_language_uid">0</field>
-                               <field index="l18n_parent">0</field>
-                               <field index="sorting">256</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
-                               <field index="title">Hotel 1 (csv)</field>
-                               <field index="offers">1,2</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                               <field index="offers" type="array">
-                                       <type>db</type>
-                                       <relations index="itemArray" type="array">
-                                               <element index="0" type="array">
-                                                       <id>1</id>
-                                                       <table>tx_irretutorial_1ncsv_offer</table>
-                                               </element>
-                                               <element index="1" type="array">
-                                                       <id>2</id>
-                                                       <table>tx_irretutorial_1ncsv_offer</table>
-                                               </element>
-                                       </relations>
-                               </field>
-                       </related>
-               </tablerow>
-               <tablerow index="tx_irretutorial_1ncsv_offer:3" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">3</field>
-                               <field index="pid">1</field>
-                               <field index="cruser_id">1</field>
-                               <field index="sys_language_uid">0</field>
-                               <field index="l18n_parent">0</field>
-                               <field index="sorting">64</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
-                               <field index="title">Offer 2.2 (csv)</field>
-                               <field index="prices">3</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                               <field index="prices" type="array">
-                                       <type>db</type>
-                                       <relations index="itemArray" type="array">
-                                               <element index="0" type="array">
-                                                       <id>3</id>
-                                                       <table>tx_irretutorial_1ncsv_price</table>
-                                               </element>
-                                       </relations>
-                               </field>
-                       </related>
-               </tablerow>
-               <tablerow index="tx_irretutorial_1ncsv_offer:2" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">2</field>
-                               <field index="pid">1</field>
-                               <field index="cruser_id">1</field>
-                               <field index="sys_language_uid">0</field>
-                               <field index="l18n_parent">0</field>
-                               <field index="sorting">128</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
-                               <field index="title">Offer 1.2 (csv)</field>
-                               <field index="prices">2</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                               <field index="prices" type="array">
-                                       <type>db</type>
-                                       <relations index="itemArray" type="array">
-                                               <element index="0" type="array">
-                                                       <id>2</id>
-                                                       <table>tx_irretutorial_1ncsv_price</table>
-                                               </element>
-                                       </relations>
-                               </field>
-                       </related>
-               </tablerow>
-               <tablerow index="tx_irretutorial_1ncsv_offer:1" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">1</field>
-                               <field index="pid">1</field>
-                               <field index="cruser_id">1</field>
-                               <field index="sys_language_uid">0</field>
-                               <field index="l18n_parent">0</field>
-                               <field index="sorting">256</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
-                               <field index="title">Offer 1.1 (csv)</field>
-                               <field index="prices">1</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                               <field index="prices" type="array">
-                                       <type>db</type>
-                                       <relations index="itemArray" type="array">
-                                               <element index="0" type="array">
-                                                       <id>1</id>
-                                                       <table>tx_irretutorial_1ncsv_price</table>
-                                               </element>
-                                       </relations>
-                               </field>
-                       </related>
-               </tablerow>
-               <tablerow index="tx_irretutorial_1ncsv_price:3" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">3</field>
-                               <field index="pid">1</field>
-                               <field index="cruser_id">1</field>
-                               <field index="sys_language_uid">0</field>
-                               <field index="l18n_parent">0</field>
-                               <field index="sorting">64</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
-                               <field index="title">Price 2.2.1 (csv)</field>
-                               <field index="price">112.00</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                       </related>
-               </tablerow>
-               <tablerow index="tx_irretutorial_1ncsv_price:2" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">2</field>
-                               <field index="pid">1</field>
-                               <field index="cruser_id">1</field>
-                               <field index="sys_language_uid">0</field>
-                               <field index="l18n_parent">0</field>
-                               <field index="sorting">128</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
-                               <field index="title">Price 1.2.1 (csv)</field>
-                               <field index="price">90.00</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                       </related>
-               </tablerow>
-               <tablerow index="tx_irretutorial_1ncsv_price:1" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">1</field>
-                               <field index="pid">1</field>
-                               <field index="cruser_id">1</field>
-                               <field index="sys_language_uid">0</field>
-                               <field index="l18n_parent">0</field>
-                               <field index="sorting">256</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
-                               <field index="title">Price 1.1.1 (csv)</field>
-                               <field index="price">567.00</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                       </related>
-               </tablerow>
-       </records>
-</T3RecordDocument>
\ No newline at end of file
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExport/pages-and-ttcontent-with-image.xml b/typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExport/pages-and-ttcontent-with-image.xml
deleted file mode 100644 (file)
index a121cd8..0000000
+++ /dev/null
@@ -1,593 +0,0 @@
-<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
-<T3RecordDocument>
-       <header type="array">
-               <records type="array">
-                       <table index="pages" type="array">
-                               <rec index="1" type="array">
-                                       <uid>1</uid>
-                                       <pid>0</pid>
-                                       <title>Root</title>
-                                       <size>162</size>
-                                       <relations index="rels" type="array">
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                               <rec index="2" type="array">
-                                       <uid>2</uid>
-                                       <pid>1</pid>
-                                       <title>Dummy 1-2</title>
-                                       <size>167</size>
-                                       <relations index="rels" type="array">
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                       </table>
-                       <table index="tt_content" type="array">
-                               <rec index="1" type="array">
-                                       <uid>1</uid>
-                                       <pid>1</pid>
-                                       <title>Test content</title>
-                                       <size>188</size>
-                                       <relations index="rels" type="array">
-                                               <element index="sys_file_reference:1" type="array">
-                                                       <id>1</id>
-                                                       <table>sys_file_reference</table>
-                                               </element>
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                       </table>
-                       <table index="sys_language" type="array">
-                               <rec index="1" type="array">
-                                       <uid>1</uid>
-                                       <pid>0</pid>
-                                       <title>Deutsch</title>
-                                       <size>109</size>
-                                       <relations index="rels" type="array">
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                       </table>
-                       <table index="sys_file_reference" type="array">
-                               <rec index="1" type="array">
-                                       <uid>1</uid>
-                                       <pid>1</pid>
-                                       <title>1</title>
-                                       <size>292</size>
-                                       <relations index="rels" type="array">
-                                               <element index="sys_file:1" type="array">
-                                                       <id>1</id>
-                                                       <table>sys_file</table>
-                                               </element>
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                       </table>
-                       <table index="sys_file" type="array">
-                               <rec index="1" type="array">
-                                       <uid>1</uid>
-                                       <pid>0</pid>
-                                       <title>typo3_image2.jpg</title>
-                                       <size>532</size>
-                                       <relationLevel>1</relationLevel>
-                                       <relations index="rels" type="array">
-                                               <element index="sys_file_storage:1" type="array">
-                                                       <id>1</id>
-                                                       <table>sys_file_storage</table>
-                                               </element>
-                                               <element index="sys_file_metadata:1" type="array">
-                                                       <id>1</id>
-                                                       <table>sys_file_metadata</table>
-                                               </element>
-                                               <element index="sys_file_metadata:2" type="array">
-                                                       <id>2</id>
-                                                       <table>sys_file_metadata</table>
-                                               </element>
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                       </table>
-                       <table index="sys_file_storage" type="array">
-                               <rec index="1" type="array">
-                                       <uid>1</uid>
-                                       <pid>0</pid>
-                                       <title>fileadmin/ (auto-created)</title>
-                                       <size>722</size>
-                                       <relationLevel>2</relationLevel>
-                                       <relations index="rels" type="array">
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                       </table>
-                       <table index="sys_file_metadata" type="array">
-                               <rec index="1" type="array">
-                                       <uid>1</uid>
-                                       <pid>0</pid>
-                                       <title>typo3_image2.jpg</title>
-                                       <size>294</size>
-                                       <relationLevel>2</relationLevel>
-                                       <relations index="rels" type="array">
-                                               <element index="sys_file:1" type="array">
-                                                       <id>1</id>
-                                                       <table>sys_file</table>
-                                               </element>
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                               <rec index="2" type="array">
-                                       <uid>2</uid>
-                                       <pid>0</pid>
-                                       <title>typo3_image2.jpg</title>
-                                       <size>291</size>
-                                       <relationLevel>2</relationLevel>
-                                       <relations index="rels" type="array">
-                                               <element index="sys_language:1" type="array">
-                                                       <id>1</id>
-                                                       <table>sys_language</table>
-                                               </element>
-                                               <element index="sys_file_reference:1" type="array">
-                                                       <id>1</id>
-                                                       <table>sys_file_reference</table>
-                                               </element>
-                                               <element index="sys_file:1" type="array">
-                                                       <id>1</id>
-                                                       <table>sys_file</table>
-                                               </element>
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                       </table>
-               </records>
-               <pid_lookup type="array">
-                       <page_contents index="0" type="array">
-                               <table index="pages" type="array">
-                                       <item index="1">1</item>
-                               </table>
-                               <table index="sys_language" type="array">
-                                       <item index="1">1</item>
-                               </table>
-                               <table index="sys_file" type="array">
-                                       <item index="1">1</item>
-                               </table>
-                               <table index="sys_file_storage" type="array">
-                                       <item index="1">1</item>
-                               </table>
-                               <table index="sys_file_metadata" type="array">
-                                       <item index="1">1</item>
-                                       <item index="2">1</item>
-                               </table>
-                       </page_contents>
-                       <page_contents index="1" type="array">
-                               <table index="pages" type="array">
-                                       <item index="2">1</item>
-                               </table>
-                               <table index="tt_content" type="array">
-                                       <item index="1">1</item>
-                               </table>
-                               <table index="sys_file_reference" type="array">
-                                       <item index="1">1</item>
-                               </table>
-                       </page_contents>
-               </pid_lookup>
-               <pagetree type="array">
-                       <node index="1" type="array">
-                               <uid>1</uid>
-                               <node index="subrow" type="array">
-                                       <node index="2" type="array">
-                                               <uid>2</uid>
-                                       </node>
-                               </node>
-                       </node>
-               </pagetree>
-               <files_fal type="array">
-                       <file index="4a705ca3ef43b53dc00de861ba2c86af" type="array">
-                               <filesize>7958</filesize>
-                               <filename>typo3_image2.jpg</filename>
-                               <filemtime>1389878273</filemtime>
-                       </file>
-               </files_fal>
-       </header>
-       <records type="array">
-               <tablerow index="pages:1" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">1</field>
-                               <field index="pid">0</field>
-                               <field index="deleted">0</field>
-                               <field index="perms_everybody">15</field>
-                               <field index="hidden">0</field>
-                               <field index="title">Root</field>
-                               <field index="doktype">1</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                       </related>
-               </tablerow>
-               <tablerow index="pages:2" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">2</field>
-                               <field index="pid">1</field>
-                               <field index="deleted">0</field>
-                               <field index="perms_everybody">15</field>
-                               <field index="hidden">0</field>
-                               <field index="title">Dummy 1-2</field>
-                               <field index="doktype">1</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                       </related>
-               </tablerow>
-               <tablerow index="tt_content:1" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">1</field>
-                               <field index="pid">1</field>
-                               <field index="t3ver_oid">0</field>
-                               <field index="hidden">0</field>
-                               <field index="CType">textpic</field>
-                               <field index="header">Test content</field>
-                               <field index="image">1</field>
-                               <field index="deleted">0</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                               <field index="image" type="array">
-                                       <type>db</type>
-                                       <relations index="itemArray" type="array">
-                                               <element index="0" type="array">
-                                                       <id>1</id>
-                                                       <table>sys_file_reference</table>
-                                               </element>
-                                       </relations>
-                               </field>
-                       </related>
-               </tablerow>
-               <tablerow index="sys_language:1" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">1</field>
-                               <field index="pid">0</field>
-                               <field index="hidden">0</field>
-                               <field index="title">Deutsch</field>
-                               <field index="flag">de</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                       </related>
-               </tablerow>
-               <tablerow index="sys_file_reference:1" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">1</field>
-                               <field index="pid">1</field>
-                               <field index="uid_local">1</field>
-                               <field index="uid_foreign">1</field>
-                               <field index="tablenames">tt_content</field>
-                               <field index="fieldname">image</field>
-                               <field index="sorting_foreign">0</field>
-                               <field index="table_local">sys_file</field>
-                               <field index="title" type="NULL"></field>
-                               <field index="description" type="NULL"></field>
-                               <field index="alternative" type="NULL"></field>
-                               <field index="link" type="NULL"></field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                               <field index="uid_local" type="array">
-                                       <type>db</type>
-                                       <relations index="itemArray" type="array">
-                                               <element index="0" type="array">
-                                                       <id>1</id>
-                                                       <table>sys_file</table>
-                                               </element>
-                                       </relations>
-                               </field>
-                       </related>
-               </tablerow>
-               <tablerow index="sys_file:1" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">1</field>
-                               <field index="pid">0</field>
-                               <field index="storage">1</field>
-                               <field index="type">2</field>
-                               <field index="metadata">0</field>
-                               <field index="identifier">/user_upload/typo3_image2.jpg</field>
-                               <field index="identifier_hash">f90bb9a35622f35b5279195e324eddbaec8164b2</field>
-                               <field index="folder_hash">19669f1e02c2f16705ec7587044c66443be70725</field>
-                               <field index="mime_type">image/jpeg</field>
-                               <field index="name">typo3_image2.jpg</field>
-                               <field index="sha1">da9acdf1e105784a57bbffec9520969578287797</field>
-                               <field index="size">7958</field>
-                               <field index="creation_date">1389878273</field>
-                               <field index="modification_date">1389878273</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                               <field index="storage" type="array">
-                                       <type>db</type>
-                                       <relations index="itemArray" type="array">
-                                               <element index="0" type="array">
-                                                       <id>1</id>
-                                                       <table>sys_file_storage</table>
-                                               </element>
-                                       </relations>
-                               </field>
-                               <field index="metadata" type="array">
-                                       <type>db</type>
-                                       <relations index="itemArray" type="array">
-                                               <element index="0" type="array">
-                                                       <id>1</id>
-                                                       <table>sys_file_metadata</table>
-                                               </element>
-                                               <element index="1" type="array">
-                                                       <id>2</id>
-                                                       <table>sys_file_metadata</table>
-                                               </element>
-                                       </relations>
-                               </field>
-                       </related>
-               </tablerow>
-               <tablerow index="sys_file_storage:1" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">1</field>
-                               <field index="pid">0</field>
-                               <field index="name">fileadmin/ (auto-created)</field>
-                               <field index="description" type="NULL"></field>
-                               <field index="driver">Local</field>
-                               <field index="configuration">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; standalone=&quot;yes&quot; ?&gt;
-&lt;T3FlexForms&gt;
-       &lt;data&gt;
-               &lt;sheet index=&quot;sDEF&quot;&gt;
-                       &lt;language index=&quot;lDEF&quot;&gt;
-                               &lt;field index=&quot;basePath&quot;&gt;
-                                       &lt;value index=&quot;vDEF&quot;&gt;fileadmin/&lt;/value&gt;
-                               &lt;/field&gt;
-                               &lt;field index=&quot;pathType&quot;&gt;
-                                       &lt;value index=&quot;vDEF&quot;&gt;relative&lt;/value&gt;
-                               &lt;/field&gt;
-                               &lt;field index=&quot;caseSensitive&quot;&gt;
-                                       &lt;value index=&quot;vDEF&quot;&gt;1&lt;/value&gt;
-                               &lt;/field&gt;
-                       &lt;/language&gt;
-               &lt;/sheet&gt;
-       &lt;/data&gt;
-&lt;/T3FlexForms&gt;</field>
-                               <field index="is_default">0</field>
-                               <field index="is_browsable">1</field>
-                               <field index="is_public">1</field>
-                               <field index="is_writable">1</field>
-                               <field index="is_online">1</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                               <field index="configuration" type="array">
-                                       <type>flex</type>
-                                       <flexform index="flexFormRels" type="array">
-                                               <db_relations index="db" type="array">
-                                               </db_relations>
-                                               <file_relations index="file" type="array">
-                                               </file_relations>
-                                               <softref_relations index="softrefs" type="array">
-                                               </softref_relations>
-                                       </flexform>
-                               </field>
-                       </related>
-               </tablerow>
-               <tablerow index="sys_file_metadata:1" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">1</field>
-                               <field index="pid">0</field>
-                               <field index="sys_language_uid">0</field>
-                               <field index="l10n_parent">0</field>
-                               <field index="file">1</field>
-                               <field index="title">Dummy image</field>
-                               <field index="width">400</field>
-                               <field index="height">300</field>
-                               <field index="description">This is a dummy image.</field>
-                               <field index="alternative">Photo of program code</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                               <field index="file" type="array">
-                                       <type>db</type>
-                                       <relations index="itemArray" type="array">
-                                               <element index="0" type="array">
-                                                       <id>1</id>
-                                                       <table>sys_file</table>
-                                               </element>
-                                       </relations>
-                               </field>
-                       </related>
-               </tablerow>
-               <tablerow index="sys_file_metadata:2" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">2</field>
-                               <field index="pid">0</field>
-                               <field index="sys_language_uid">1</field>
-                               <field index="l10n_parent">1</field>
-                               <field index="file">1</field>
-                               <field index="title">Beispiel Bild</field>
-                               <field index="width">0</field>
-                               <field index="height">0</field>
-                               <field index="description">Nur ein Beispielbild.</field>
-                               <field index="alternative">Foto von Programmcode</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                               <field index="sys_language_uid" type="array">
-                                       <type>db</type>
-                                       <relations index="itemArray" type="array">
-                                               <element index="0" type="array">
-                                                       <id>1</id>
-                                                       <table>sys_language</table>
-                                               </element>
-                                       </relations>
-                               </field>
-                               <field index="l10n_parent" type="array">
-                                       <type>db</type>
-                                       <relations index="itemArray" type="array">
-                                               <element index="0" type="array">
-                                                       <id>1</id>
-                                                       <table>sys_file_reference</table>
-                                               </element>
-                                       </relations>
-                               </field>
-                               <field index="file" type="array">
-                                       <type>db</type>
-                                       <relations index="itemArray" type="array">
-                                               <element index="0" type="array">
-                                                       <id>1</id>
-                                                       <table>sys_file</table>
-                                               </element>
-                                       </relations>
-                               </field>
-                       </related>
-               </tablerow>
-       </records>
-       <files_fal type="array">
-               <file index="4a705ca3ef43b53dc00de861ba2c86af" type="array">
-                       <filesize>7958</filesize>
-                       <filename>typo3_image2.jpg</filename>
-                       <filemtime>1389878273</filemtime>
-                       <content base64="1">
-/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAA0JCgsKCA0LCgsODg0PEyAVExISEyccHhcgLikxMC4p
-LSwzOko+MzZGNywtQFdBRkxOUlNSMj5aYVpQYEpRUk//2wBDAQ4ODhMREyYVFSZPNS01T09PT09P
-T09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0//wAARCAEsAZADASIA
-AhEBAxEB/8QAGgAAAgMBAQAAAAAAAAAAAAAAAAECBAUDBv/EADsQAAICAgEDAwIEAwYFBAMAAAAB
-AgMEERIFITETQVEiYRQycaGBkcEVI0JSYrEkM0PR8FNyguGSovH/xAAYAQEBAQEBAAAAAAAAAAAA
-AAAAAQIDBP/EACARAQEBAAIDAAMBAQAAAAAAAAABEQIhEjFBAxNRYXH/2gAMAwEAAhEDEQA/APKJ
-bJJGY/xVEVOUuUfgv490boKSIrsNIEMAR0we2bNfMSBPE7Z6+8WBpoYIYQIAGAe4B7DAQD/gACGG
-gKo9gAAgEMAoEMAEMAAQuK3vXckATFaOFVB2SrTg7Fp6ZVlg2xk7J3c1GuUV27vfyaehNJpp+GXR
-k4SyLrMac6+FdUOz3+btohCzjhZlMW1ZGUnr318mvXXGuEYQWoxWkJ1QbbcE21pvXsDWP6cK7HHE
-lqSpVj0/LTLE8m25XSpjCdcIxbjL37bZ2WJi4W71FxSTT9+zOfTcfjgWai16rk0n8ewHazNqoqql
-ZtKxdtI6xuqlGElNamtx7+SpXXZJYauqadbc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QnWoTjyivZk4xUUlFaS+AGEAAAAAAAxDABAP5EVAAAgAAAoBgAAAAAAAAM
-AAoAGIgBiGAhgAUAAAIBgFLQwAAGAAAAAAIAIPHT6hXx+hbZzxKLJ3+tYuO+6LFWNUnvguxZS7D0
-2pWYM7LOTsff2+Czi4sKO6W5P3Z3Q/8AKND+40u4ew17/YAXgckuLQf0GwmLnTHywavstfuW0Uuk
-98TXxJl74ImEA/dgvACAYAwa9gH7/wAQQTB8CGACAloRTCAYIJhAP3AGAAGAgGBTCGCALg0A2AMA
-AgKDQDAgQD9xAwAMAYQDF7gwAMBphAP3ALhAMTIEAAB//9k=
-</content>
-                       <content_sha1>da9acdf1e105784a57bbffec9520969578287797</content_sha1>
-               </file>
-       </files_fal>
-</T3RecordDocument>
\ No newline at end of file
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExport/pages-and-ttcontent.xml b/typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExport/pages-and-ttcontent.xml
deleted file mode 100644 (file)
index 037212d..0000000
+++ /dev/null
@@ -1,107 +0,0 @@
-<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
-<T3RecordDocument>
-       <header type="array">
-               <records type="array">
-                       <table index="pages" type="array">
-                               <rec index="1" type="array">
-                                       <uid>1</uid>
-                                       <pid>0</pid>
-                                       <title>Root</title>
-                                       <size>162</size>
-                                       <relations index="rels" type="array">
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                               <rec index="2" type="array">
-                                       <uid>2</uid>
-                                       <pid>1</pid>
-                                       <title>Dummy 1-2</title>
-                                       <size>167</size>
-                                       <relations index="rels" type="array">
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                       </table>
-                       <table index="tt_content" type="array">
-                               <rec index="1" type="array">
-                                       <uid>1</uid>
-                                       <pid>1</pid>
-                                       <title>Test content</title>
-                                       <size>165</size>
-                                       <relations index="rels" type="array">
-                                       </relations>
-                                       <softrefs type="array">
-                                       </softrefs>
-                               </rec>
-                       </table>
-               </records>
-               <pid_lookup type="array">
-                       <page_contents index="0" type="array">
-                               <table index="pages" type="array">
-                                       <item index="1">1</item>
-                               </table>
-                       </page_contents>
-                       <page_contents index="1" type="array">
-                               <table index="pages" type="array">
-                                       <item index="2">1</item>
-                               </table>
-                               <table index="tt_content" type="array">
-                                       <item index="1">1</item>
-                               </table>
-                       </page_contents>
-               </pid_lookup>
-               <pagetree type="array">
-                       <node index="1" type="array">
-                               <uid>1</uid>
-                               <node index="subrow" type="array">
-                                       <node index="2" type="array">
-                                               <uid>2</uid>
-                                       </node>
-                               </node>
-                       </node>
-               </pagetree>
-       </header>
-       <records type="array">
-               <tablerow index="pages:1" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">1</field>
-                               <field index="pid">0</field>
-                               <field index="deleted">0</field>
-                               <field index="perms_everybody">15</field>
-                               <field index="hidden">0</field>
-                               <field index="title">Root</field>
-                               <field index="doktype">1</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                       </related>
-               </tablerow>
-               <tablerow index="pages:2" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">2</field>
-                               <field index="pid">1</field>
-                               <field index="deleted">0</field>
-                               <field index="perms_everybody">15</field>
-                               <field index="hidden">0</field>
-                               <field index="title">Dummy 1-2</field>
-                               <field index="doktype">1</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                       </related>
-               </tablerow>
-               <tablerow index="tt_content:1" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid">1</field>
-                               <field index="pid">1</field>
-                               <field index="t3ver_oid">0</field>
-                               <field index="hidden">0</field>
-                               <field index="CType">text</field>
-                               <field index="header">Test content</field>
-                               <field index="deleted">0</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                       </related>
-               </tablerow>
-       </records>
-</T3RecordDocument>
\ No newline at end of file
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExportXml/irre-records.xml b/typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExportXml/irre-records.xml
new file mode 100644 (file)
index 0000000..1e64f04
--- /dev/null
@@ -0,0 +1,1955 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3RecordDocument>
+       <header type="array">
+               <records type="array">
+                       <table index="pages" type="array">
+                               <rec index="1" type="array">
+                                       <uid>1</uid>
+                                       <pid>0</pid>
+                                       <title>IRRE</title>
+                                       <size>162</size>
+                                       <relations index="rels" type="array">
+                                       </relations>
+                                       <softrefs type="array">
+                                       </softrefs>
+                               </rec>
+                       </table>
+                       <table index="tt_content" type="array">
+                               <rec index="1" type="array">
+                                       <uid>1</uid>
+                                       <pid>1</pid>
+                                       <title>Test content</title>
+                                       <size>254</size>
+                                       <relations index="rels" type="array">
+                                               <element index="tx_irretutorial_1nff_hotel:1" type="array">
+                                                       <id>1</id>
+                                                       <table>tx_irretutorial_1nff_hotel</table>
+                                               </element>
+                                               <element index="tx_irretutorial_1nff_hotel:2" type="array">
+                                                       <id>2</id>
+                                                       <table>tx_irretutorial_1nff_hotel</table>
+                                               </element>
+                                               <element index="tx_irretutorial_1ncsv_hotel:1" type="array">
+                                                       <id>1</id>
+                                                       <table>tx_irretutorial_1ncsv_hotel</table>
+                                               </element>
+                                               <element index="tx_irretutorial_1ncsv_hotel:2" type="array">
+                                                       <id>2</id>
+                                                       <table>tx_irretutorial_1ncsv_hotel</table>
+                                               </element>
+                                       </relations>
+                                       <softrefs type="array">
+                                       </softrefs>
+                               </rec>
+                       </table>
+                       <table index="tx_irretutorial_1nff_hotel" type="array">
+                               <rec index="1" type="array">
+                                       <uid>1</uid>
+                                       <pid>1</pid>
+                                       <title>Hotel 1 (nff)</title>
+                                       <size>336</size>
+                                       <relations index="rels" type="array">
+                                               <element index="tx_irretutorial_1nff_offer:1" type="array">
+                                                       <id>1</id>
+                                                       <table>tx_irretutorial_1nff_offer</table>
+                                               </element>
+                                               <element index="tx_irretutorial_1nff_offer:2" type="array">
+                                                       <id>2</id>
+                                                       <table>tx_irretutorial_1nff_offer</table>
+                                               </element>
+                                       </relations>
+                                       <softrefs type="array">
+                                       </softrefs>
+                               </rec>
+                               <rec index="2" type="array">
+                                       <uid>2</uid>
+                                       <pid>1</pid>
+                                       <title>Hotel 2 (nff)</title>
+                                       <size>336</size>
+                                       <relations index="rels" type="array">
+                                               <element index="tx_irretutorial_1nff_offer:3" type="array">
+                                                       <id>3</id>
+                                                       <table>tx_irretutorial_1nff_offer</table>
+                                               </element>
+                                       </relations>
+                                       <softrefs type="array">
+                                       </softrefs>
+                               </rec>
+                       </table>
+                       <table index="tx_irretutorial_1nff_offer" type="array">
+                               <rec index="1" type="array">
+                                       <uid>1</uid>
+                                       <pid>1</pid>
+                                       <title>Offer 1.1 (nff)</title>
+                                       <size>354</size>
+                                       <relations index="rels" type="array">
+                                               <element index="tx_irretutorial_1nff_price:1" type="array">
+                                                       <id>1</id>
+                                                       <table>tx_irretutorial_1nff_price</table>
+                                               </element>
+                                               <element index="tx_irretutorial_1nff_price:2" type="array">
+                                                       <id>2</id>
+                                                       <table>tx_irretutorial_1nff_price</table>
+                                               </element>
+                                       </relations>
+                                       <softrefs type="array">
+                                       </softrefs>
+                               </rec>
+                               <rec index="3" type="array">
+                                       <uid>3</uid>
+                                       <pid>1</pid>
+                                       <title>Offer 2.1 (nff)</title>
+                                       <size>354</size>
+                                       <relations index="rels" type="array">
+                                               <element index="tx_irretutorial_1nff_price:4" type="array">
+                                                       <id>4</id>
+                                                       <table>tx_irretutorial_1nff_price</table>
+                                               </element>
+                                       </relations>
+                                       <softrefs type="array">
+                                       </softrefs>
+                               </rec>
+                               <rec index="2" type="array">
+                                       <uid>2</uid>
+                                       <pid>1</pid>
+                                       <title>Offer 1.2 (nff)</title>
+                                       <size>354</size>
+                                       <relations index="rels" type="array">
+                                               <element index="tx_irretutorial_1nff_price:3" type="array">
+                                                       <id>3</id>
+                                                       <table>tx_irretutorial_1nff_price</table>
+                                               </element>
+                                       </relations>
+                                       <softrefs type="array">
+                                       </softrefs>
+                               </rec>
+                       </table>
+                       <table index="tx_irretutorial_1nff_price" type="array">
+                               <rec index="1" type="array">
+                                       <uid>1</uid>
+                                       <pid>1</pid>
+                                       <title>Price 1.1.1 (nff)</title>
+                                       <size>358</size>
+                                       <relations index="rels" type="array">
+                                       </relations>
+                                       <softrefs type="array">
+                                       </softrefs>
+                               </rec>
+                               <rec index="3" type="array">
+                                       <uid>3</uid>
+                                       <pid>1</pid>
+                                       <title>Price 1.2.1 (nff)</title>
+                                       <size>360</size>
+                                       <relations index="rels" type="array">
+                                       </relations>
+                                       <softrefs type="array">
+                                       </softrefs>
+                               </rec>
+                               <rec index="4" type="array">
+                                       <uid>4</uid>
+                                       <pid>1</pid>
+                                       <title>Price 2.1.1 (nff)</title>
+                                       <size>365</size>
+                                       <relations index="rels" type="array">
+                                       </relations>
+                                       <softrefs type="array">
+                                       </softrefs>
+                               </rec>
+                               <rec index="2" type="array">
+                                       <uid>2</uid>
+                                       <pid>1</pid>
+                                       <title>Price 1.1.2 (nff)</title>
+                                       <size>360</size>
+                                       <relations index="rels" type="array">
+                                       </relations>
+                                       <softrefs type="array">
+                                       </softrefs>
+                               </rec>
+                       </table>
+                       <table index="tx_irretutorial_mnasym_hotel" type="array">
+                               <rec index="1" type="array">
+                                       <uid>1</uid>
+                                       <pid>1</pid>
+                                       <title>Hotel 1 (m:n ASym)</title>
+                                       <size>252</size>
+                                       <relations index="rels" type="array">
+                                               <element index="tx_irretutorial_mnasym_hotel_offer_rel:2" type="array">
+                                                       <id>2</id>
+                                                       <table>tx_irretutorial_mnasym_hotel_offer_rel</table>
+                                               </element>
+                                               <element index="tx_irretutorial_mnasym_hotel_offer_rel:1" type="array">
+                                                       <id>1</id>
+                                                       <table>tx_irretutorial_mnasym_hotel_offer_rel</table>
+                                               </element>
+                                       </relations>
+                                       <softrefs type="array">
+                                       </softrefs>
+                               </rec>
+                       </table>
+                       <table index="tx_irretutorial_mnasym_hotel_offer_rel" type="array">
+                               <rec index="1" type="array">
+                                       <uid>1</uid>
+                                       <pid>1</pid>
+                                       <title>1</title>
+                                       <size>282</size>
+                                       <relations index="rels" type="array">
+                                               <element index="tx_irretutorial_mnasym_hotel:1" type="array">
+                                                       <id>1</id>
+                                                       <table>tx_irretutorial_mnasym_hotel</table>
+                                               </element>
+                                               <element index="tx_irretutorial_mnasym_offer:2" type="array">
+                                                       <id>2</id>
+                                                       <table>tx_irretutorial_mnasym_offer</table>
+                                               </element>
+                                               <element index="tx_irretutorial_mnasym_price:1" type="array">
+                                                       <id>1</id>
+                                                       <table>tx_irretutorial_mnasym_price</table>
+                                               </element>
+                                       </relations>
+                                       <softrefs type="array">
+                                       </softrefs>
+                               </rec>
+                               <rec index="2" type="array">
+                                       <uid>2</uid>
+                                       <pid>1</pid>
+                                       <title>2</title>
+                                       <size>282</size>
+                                       <relations index="rels" type="array">
+                                               <element index="tx_irretutorial_mnasym_hotel:1" type="array">
+                                                       <id>1</id>
+                                                       <table>tx_irretutorial_mnasym_hotel</table>
+                                               </element>
+                                               <element index="tx_irretutorial_mnasym_offer:1" type="array">
+                                                       <id>1</id>
+                                                       <table>tx_irretutorial_mnasym_offer</table>
+                                               </element>
+                                               <element index="tx_irretutorial_mnasym_price:2" type="array">
+                                                       <id>2</id>
+                                                       <table>tx_irretutorial_mnasym_price</table>
+                                               </element>
+                                       </relations>
+                                       <softrefs type="array">
+                                       </softrefs>
+                               </rec>
+                       </table>
+                       <table index="tx_irretutorial_mnasym_offer" type="array">
+                               <rec index="2" type="array">
+                                       <uid>2</uid>
+                                       <pid>1</pid>
+                                       <title>Offer 2 (m:n ASym)</title>
+                                       <size>252</size>
+                                       <relations index="rels" type="array">
+                                               <element index="tx_irretutorial_mnasym_hotel_offer_rel:1" type="array">
+                                                       <id>1</id>
+                                                       <table>tx_irretutorial_mnasym_hotel_offer_rel</table>
+                                               </element>
+                                       </relations>
+                                       <softrefs type="array">
+                                       </softrefs>
+                               </rec>
+                               <rec index="1" type="array">
+                                       <uid>1</uid>
+                                       <pid>1</pid>
+                                       <title>Offer 1 (m:n ASym)</title>
+                                       <size>252</size>
+                                       <relations index="rels" type="array">
+                                               <element index="tx_irretutorial_mnasym_hotel_offer_rel:2" type="array">
+                                                       <id>2</id>
+                                                       <table>tx_irretutorial_mnasym_hotel_offer_rel</table>
+                                               </element>
+                                       </relations>
+                                       <softrefs type="array">
+                                       </softrefs>
+                               </rec>
+                       </table>
+                       <table index="tx_irretutorial_mnasym_price" type="array">
+                               <rec index="1" type="array">
+                                       <uid>1</uid>
+                                       <pid>1</pid>
+                                       <title>Price 1 1:2 (m:n ASym)</title>
+                                       <size>281</size>
+                                       <relations index="rels" type="array">
+                                       </relations>
+                                       <softrefs type="array">
+                                       </softrefs>
+                               </rec>
+                               <rec index="2" type="array">
+                                       <uid>2</uid>
+                                       <pid>1</pid>
+                                       <title>Price 2 1:1 (m:n ASym)</title>
+                                       <size>280</size>
+                                       <relations index="rels" type="array">
+                                       </relations>
+                                       <softrefs type="array">
+                                       </softrefs>
+                               </rec>
+                       </table>
+                       <table index="tx_irretutorial_mnmmasym_hotel" type="array">
+                               <rec index="1" type="array">
+                                       <uid>1</uid>
+                                       <pid>1</pid>
+                                       <title>Hotel 1 (m:n (MM) ASym)</title>
+                                       <size>257</size>
+                                       <relations index="rels" type="array">
+                                               <element index="tx_irretutorial_mnmmasym_offer:1" type="array">
+                                                       <id>1</id>
+                                                       <table>tx_irretutorial_mnmmasym_offer</table>
+                                               </element>
+                                               <element index="tx_irretutorial_mnmmasym_offer:2" type="array">
+                                                       <id>2</id>
+                                                       <table>tx_irretutorial_mnmmasym_offer</table>
+                                               </element>
+                                       </relations>
+                                       <softrefs type="array">
+                                       </softrefs>
+                               </rec>
+                               <rec index="2" type="array">
+                                       <uid>2</uid>
+                                       <pid>1</pid>
+                                       <title>Hotel 2 (m:n (MM) ASym)</title>
+                                       <size>257</size>
+                                       <relations index="rels" type="array">
+                                               <element index="tx_irretutorial_mnmmasym_offer:3" type="array">
+                                                       <id>3</id>
+                                                       <table>tx_irretutorial_mnmmasym_offer</table>
+                                               </element>
+                                       </relations>
+                                       <softrefs type="array">
+                                       </softrefs>
+                               </rec>
+                       </table>
+                       <table index="tx_irretutorial_mnmmasym_offer" type="array">
+                               <rec index="3" type="array">
+                                       <uid>3</uid>
+                                       <pid>1</pid>
+                                       <title>Offer 2.1 (m:n (MM) ASym)</title>
+                                       <size>279</size>
+                                       <relations index="rels" type="array">
+                                               <element index="tx_irretutorial_mnmmasym_price:3" type="array">
+                                                       <id>3</id>
+                                                       <table>tx_irretutorial_mnmmasym_price</table>
+                                               </element>
+                                       </relations>
+                                       <softrefs type="array">
+                                       </softrefs>
+                               </rec>
+                               <rec index="2" type="array">
+                                       <uid>2</uid>
+                                       <pid>1</pid>
+                                       <title>Offer 1.2 (m:n (MM) ASym)</title>
+                                       <size>280</size>
+                                       <relations index="rels" type="array">
+                                               <element index="tx_irretutorial_mnmmasym_price:2" type="array">
+                                                       <id>2</id>
+                                                       <table>tx_irretutorial_mnmmasym_price</table>
+                                               </element>
+                                       </relations>
+                                       <softrefs type="array">
+                                       </softrefs>
+                               </rec>
+                               <rec index="1" type="array">
+                                       <uid>1</uid>
+                                       <pid>1</pid>
+                                       <title>Offer 1.1 (m:n (MM) ASym)</title>
+                                       <size>280</size>
+                                       <relations index="rels" type="array">
+                                               <element index="tx_irretutorial_mnmmasym_price:1" type="array">
+                                                       <id>1</id>
+                                                       <table>tx_irretutorial_mnmmasym_price</table>
+                                               </element>
+                                       </relations>
+                                       <softrefs type="array">
+                                       </softrefs>
+                               </rec>
+                       </table>
+                       <table index="tx_irretutorial_mnmmasym_price" type="array">
+                               <rec index="3" type="array">
+                                       <uid>3</uid>
+                                       <pid>1</pid>
+                                       <title>Price (m:n (MM) ASym)</title>
+                                       <size>279</size>
+                                       <relations index="rels" type="array">
+                                       </relations>
+                                       <softrefs type="array">
+                                       </softrefs>
+                               </rec>
+                               <rec index="2" type="array">
+                                       <uid>2</uid>
+                                       <pid>1</pid>
+                                       <title>Price 1.2.2 (m:n (MM) ASym)</title>
+                                       <size>286</size>
+                                       <relations index="rels" type="array">
+                                       </relations>
+                                       <softrefs type="array">
+                                       </softrefs>
+                               </rec>
+                               <rec index="1" type="array">
+                                       <uid>1</uid>
+                                       <pid>1</pid>
+                                       <title>Price 1.1.1 (m:n (MM) ASym)</title>
+                                       <size>286</size>
+                                       <relations index="rels" type="array">
+                                       </relations>
+                                       <softrefs type="array">
+                                       </softrefs>
+                               </rec>
+                       </table>
+                       <table index="tx_irretutorial_mnsym_hotel" type="array">
+                               <rec index="2" type="array">
+                                       <uid>2</uid>
+                                       <pid>1</pid>
+                                       <title>Hotel Branch 1.1 (mm sym)</title>
+                                       <size>261</size>
+                                       <relations index="rels" type="array">
+                                               <element index="tx_irretutorial_mnsym_hotel_rel:1" type="array">
+                                                       <id>1</id>
+                                                       <table>tx_irretutorial_mnsym_hotel_rel</table>
+                                               </element>
+                                       </relations>
+                                       <softrefs type="array">
+                                       </softrefs>
+                               </rec>
+                               <rec index="3" type="array">
+                                       <uid>3</uid>
+                                       <pid>1</pid>
+                                       <title>Hotel branch 1.2 (mm sym)</title>
+                                       <size>261</size>
+                                       <relations index="rels" type="array">
+                                               <element index="tx_irretutorial_mnsym_hotel_rel:2" type="array">
+                                                       <id>2</id>
+                                                       <table>tx_irretutorial_mnsym_hotel_rel</table>
+                                               </element>
+                                       </relations>
+                                       <softrefs type="array">
+                                       </softrefs>
+                               </rec>
+                               <rec index="1" type="array">
+                                       <uid>1</uid>
+                                       <pid>1</pid>
+                                       <title>Hotel 1 (mm sym)</title>
+                                       <size>252</size>
+                                       <relations index="rels" type="array">
+                                               <element index="tx_irretutorial_mnsym_hotel_rel:1" type="array">
+                                                       <id>1</id>
+                                                       <table>tx_irretutorial_mnsym_hotel_rel</table>
+                                               </element>
+                                               <element index="tx_irretutorial_mnsym_hotel_rel:2" type="array">
+                                                       <id>2</id>
+                                                       <table>tx_irretutorial_mnsym_hotel_rel</table>
+                                               </element>
+                                       </relations>
+                                       <softrefs type="array">
+                                       </softrefs>
+                               </rec>
+                       </table>
+                       <table index="tx_irretutorial_mnsym_hotel_rel" type="array">
+                               <rec index="1" type="array">
+                                       <uid>1</uid>
+                                       <pid>1</pid>
+                                       <title>1</title>
+                                       <size>264</size>
+                                       <relations index="rels" type="array">
+                                               <element index="tx_irretutorial_mnsym_hotel:1" type="array">
+                                                       <id>1</id>
+                                                       <table>tx_irretutorial_mnsym_hotel</table>
+                                               </element>
+                                               <element index="tx_irretutorial_mnsym_hotel:2" type="array">
+                                                       <id>2</id>
+                                                       <table>tx_irretutorial_mnsym_hotel</table>
+                                               </element>
+                                       </relations>
+                                       <softrefs type="array">
+                                       </softrefs>
+                               </rec>
+                               <rec index="2" type="array">
+                                       <uid>2</uid>
+                                       <pid>1</pid>
+                                       <title>2</title>
+                                       <size>264</size>
+                                       <relations index="rels" type="array">
+                                               <element index="tx_irretutorial_mnsym_hotel:1" type="array">
+                                                       <id>1</id>
+                                                       <table>tx_irretutorial_mnsym_hotel</table>
+                                               </element>
+                                               <element index="tx_irretutorial_mnsym_hotel:3" type="array">
+                                                       <id>3</id>
+                                                       <table>tx_irretutorial_mnsym_hotel</table>
+                                               </element>
+                                       </relations>
+                                       <softrefs type="array">
+                                       </softrefs>
+                               </rec>
+                       </table>
+                       <table index="tx_irretutorial_mnattr_hotel" type="array">
+                               <rec index="1" type="array">
+                                       <uid>1</uid>
+                                       <pid>1</pid>
+                                       <title>Hotel 1 (m:n Attr)</title>
+                                       <size>252</size>
+                                       <relations index="rels" type="array">
+                                               <element index="tx_irretutorial_mnattr_hotel_offer_rel:1" type="array">
+                                                       <id>1</id>
+                                                       <table>tx_irretutorial_mnattr_hotel_offer_rel</table>
+                                               </element>
+                                       </relations>
+                                       <softrefs type="array">
+                                       </softrefs>
+                               </rec>
+                               <rec index="2" type="array">
+                                       <uid>2</uid>
+                                       <pid>1</pid>
+                                       <title>Hotel 2 (m:n Attr)</title>
+                                       <size>252</size>
+                                       <relations index="rels" type="array">
+                                               <element index="tx_irretutorial_mnattr_hotel_offer_rel:2" type="array">
+                                                       <id>2</id>
+                                                       <table>tx_irretutorial_mnattr_hotel_offer_rel</table>
+                                               </element>
+                                       </relations>
+                                       <softrefs type="array">
+                                       </softrefs>
+                               </rec>
+                       </table>
+                       <table index="tx_irretutorial_mnattr_hotel_offer_rel" type="array">
+                               <rec index="1" type="array">
+                                       <uid>1</uid>
+                                       <pid>1</pid>
+                                       <title>1</title>
+                                       <size>305</size>
+                                       <relations index="rels" type="array">
+                                               <element index="tx_irretutorial_mnattr_hotel:1" type="array">
+                                                       <id>1</id>
+                                                       <table>tx_irretutorial_mnattr_hotel</table>
+                                               </element>
+                                               <element index="tx_irretutorial_mnattr_offer:1" type="array">
+                                                       <id>1</id>
+                                                       <table>tx_irretutorial_mnattr_offer</table>
+                                               </element>
+                                       </relations>
+                                       <softrefs type="array">
+                                       </softrefs>
+                               </rec>
+                               <rec index="2" type="array">
+                                       <uid>2</uid>
+                                       <pid>1</pid>
+                                       <title>2</title>
+                                       <size>305</size>
+                                       <relations index="rels" type="array">
+                                               <element index="tx_irretutorial_mnattr_hotel:2" type="array">
+                                                       <id>2</id>
+                                                       <table>tx_irretutorial_mnattr_hotel</table>
+                                               </element>
+                                               <element index="tx_irretutorial_mnattr_offer:2" type="array">
+                                                       <id>2</id>
+                                                       <table>tx_irretutorial_mnattr_offer</table>
+                                               </element>
+                                       </relations>
+                                       <softrefs type="array">
+                                       </softrefs>
+                               </rec>
+                       </table>
+                       <table index="tx_irretutorial_mnattr_offer" type="array">
+                               <rec index="1" type="array">
+                                       <uid>1</uid>
+                                       <pid>1</pid>
+                                       <title>Offer 1 (m:n Attr)</title>
+                                       <size>252</size>
+                                       <relations index="rels" type="array">
+                                               <element index="tx_irretutorial_mnattr_hotel_offer_rel:1" type="array">
+                                                       <id>1</id>
+                                                       <table>tx_irretutorial_mnattr_hotel_offer_rel</table>
+                                               </element>
+                                       </relations>
+                                       <softrefs type="array">
+                                       </softrefs>
+                               </rec>
+                               <rec index="2" type="array">
+                                       <uid>2</uid>
+                                       <pid>1</pid>
+                                       <title>Offer 2 (m:n Attr)</title>
+                                       <size>252</size>
+                                       <relations index="rels" type="array">
+                                               <