lib/Doctrine/ORM/Mapping/Driver/DatabaseDriver.php
public function setTables($entityTables, $manyToManyTables)
    {
        $this->tables = $this->manyToManyTables = $this->classToTableNames = [];

        foreach ($entityTables as $table) {
            $className = $this->getClassNameForTable($table->getName());

            $this->classToTableNames[$className] = $table->getName();
            $this->tables[$table->getName()]     = $table;
        }

        foreach ($manyToManyTables as $table) {
            $this->manyToManyTables[$table->getName()] = $table;
        }
    }
public function setTables($entityTables, $manyToManyTables)
    {
        $this->tables = $this->manyToManyTables = $this->classToTableNames = [];

        foreach ($entityTables as $table) {
            $className = $this->getClassNameForTable($table->getName());

            $this->classToTableNames[$className] = $table->getName();
            $this->tables[$table->getName()]     = $table;
        }

        foreach ($manyToManyTables as $table) {
            $this->manyToManyTables[$table->getName()] = $table;
        }
    }
public function setTables ( $ entityTables , $ manyToManyTables ) { $ this -> tables = $ this -> manyToManyTables = $ this -> classToTableNames = [ ] ; foreach ( $ entityTables as $ table ) { $ className = $ this -> getClassNameForTable ( $ table -> getName ( ) ) ; $ this -> classToTableNames [ $ className ] = $ table -> getName ( ) ; $ this -> tables [ $ table -> getName ( ) ] = $ table ; } foreach ( $ manyToManyTables as $ table ) { $ this -> manyToManyTables [ $ table -> getName ( ) ] = $ table ; } }
Sets tables manually instead of relying on the reverse engineering capabilities of SchemaManager.

@param Table[] $entityTables
@param Table[] $manyToManyTables
Sets tables manually instead of relying on the reverse engineering capabilities of SchemaManager .