private function removeSubtableMetadata($dataTable)
    {
        if ($dataTable instanceof DataTable\Map) {
            foreach ($dataTable->getDataTables() as $childTable) {
                $this->removeSubtableMetadata($childTable);
            }
        } else {
            foreach ($dataTable->getRows() as $row) {
                $row->deleteMetadata('idsubdatatable_in_db');
            }
        }
    }
private function removeSubtableMetadata($dataTable)
    {
        if ($dataTable instanceof DataTable\Map) {
            foreach ($dataTable->getDataTables() as $childTable) {
                $this->removeSubtableMetadata($childTable);
            }
        } else {
            foreach ($dataTable->getRows() as $row) {
                $row->deleteMetadata('idsubdatatable_in_db');
            }
        }
    }
private function removeSubtableMetadata ( $ dataTable ) { if ( $ dataTable instanceof DataTable \ Map ) { foreach ( $ dataTable -> getDataTables ( ) as $ childTable ) { $ this -> removeSubtableMetadata ( $ childTable ) ; } } else { foreach ( $ dataTable -> getRows ( ) as $ row ) { $ row -> deleteMetadata ( 'idsubdatatable_in_db' ) ; } } }
Removes idsubdatatable_in_db metadata from a DataTable. Used by Social tables since
they use fake subtable IDs.

@param DataTable $dataTable
Removes idsubdatatable_in_db metadata from a DataTable . Used by Social tables since they use fake subtable IDs .