public function buildTable(Schema $schema, $aliasName, $charset, $collate)
    {
        $tableName = $this->tablePrefix . $aliasName;
        $this->table = $schema->createTable($tableName);
        $this->table->addOption('alias', $aliasName);
        $this->table->addOption('charset', $charset);
        $this->table->addOption('collate', $collate);
        $this->aliasName = $aliasName;
        $this->tableName = $this->table->getName();
        $this->addColumns();
        $this->addIndexes();
        $this->setPrimaryKey();
        $this->addForeignKeyConstraints();

        return $this->table;
    }
public function buildTable(Schema $schema, $aliasName, $charset, $collate)
    {
        $tableName = $this->tablePrefix . $aliasName;
        $this->table = $schema->createTable($tableName);
        $this->table->addOption('alias', $aliasName);
        $this->table->addOption('charset', $charset);
        $this->table->addOption('collate', $collate);
        $this->aliasName = $aliasName;
        $this->tableName = $this->table->getName();
        $this->addColumns();
        $this->addIndexes();
        $this->setPrimaryKey();
        $this->addForeignKeyConstraints();

        return $this->table;
    }
public function buildTable ( Schema $ schema , $ aliasName , $ charset , $ collate ) { $ tableName = $ this -> tablePrefix . $ aliasName ; $ this -> table = $ schema -> createTable ( $ tableName ) ; $ this -> table -> addOption ( 'alias' , $ aliasName ) ; $ this -> table -> addOption ( 'charset' , $ charset ) ; $ this -> table -> addOption ( 'collate' , $ collate ) ; $ this -> aliasName = $ aliasName ; $ this -> tableName = $ this -> table -> getName ( ) ; $ this -> addColumns ( ) ; $ this -> addIndexes ( ) ; $ this -> setPrimaryKey ( ) ; $ this -> addForeignKeyConstraints ( ) ; return $ this -> table ; }
Get the table's schema object.

@param Schema $schema
@param string $aliasName
@param string $charset
@param string $collate

@return \Doctrine\DBAL\Schema\Table
Get the table s schema object .