src/Extension/FluentVersionedExtension.php
protected function rewriteVersionedTables(SQLSelect $query, array $tables, Locale $locale)
    {
        foreach ($tables as $tableName => $fields) {
            // Rename to _Versions suffixed versions
            $localisedTable = $this->getLocalisedTable($tableName);
            $query->renameTable($localisedTable, $localisedTable . self::SUFFIX_VERSIONS);

            // Add the chain of locale fallbacks
            $this->addLocaleFallbackChain($query, $tableName, $locale);
        }
    }
protected function rewriteVersionedTables(SQLSelect $query, array $tables, Locale $locale)
    {
        foreach ($tables as $tableName => $fields) {
            // Rename to _Versions suffixed versions
            $localisedTable = $this->getLocalisedTable($tableName);
            $query->renameTable($localisedTable, $localisedTable . self::SUFFIX_VERSIONS);

            // Add the chain of locale fallbacks
            $this->addLocaleFallbackChain($query, $tableName, $locale);
        }
    }
protected function rewriteVersionedTables ( SQLSelect $ query , array $ tables , Locale $ locale ) { foreach ( $ tables as $ tableName => $ fields ) { // Rename to _Versions suffixed versions $ localisedTable = $ this -> getLocalisedTable ( $ tableName ) ; $ query -> renameTable ( $ localisedTable , $ localisedTable . self :: SUFFIX_VERSIONS ) ; // Add the chain of locale fallbacks $ this -> addLocaleFallbackChain ( $ query , $ tableName , $ locale ) ; } }
Rewrite all joined tables

@param SQLSelect $query
@param array $tables
@param Locale $locale
Rewrite all joined tables