protected function createTable($tableName, $table) {
		$res = "\$this->schema->create('$tableName', function(\$table) {";

		foreach($table->getColumns() as $colName=>$col)
			$res .= $this->createColumn($colName, $col);

		foreach($table->getIndexes() as $index)
			$res .= $this->createIndex($index);

		foreach($table->getForeignKeys() as $key)
			$res .= $this->createForeignKey($key);

		$res .= "\n});\n\n";

		return $res;
	}
protected function createTable($tableName, $table) {
		$res = "\$this->schema->create('$tableName', function(\$table) {";

		foreach($table->getColumns() as $colName=>$col)
			$res .= $this->createColumn($colName, $col);

		foreach($table->getIndexes() as $index)
			$res .= $this->createIndex($index);

		foreach($table->getForeignKeys() as $key)
			$res .= $this->createForeignKey($key);

		$res .= "\n});\n\n";

		return $res;
	}
protected function createTable ( $ tableName , $ table ) { $ res = "\$this->schema->create('$tableName', function(\$table) {" ; foreach ( $ table -> getColumns ( ) as $ colName => $ col ) $ res .= $ this -> createColumn ( $ colName , $ col ) ; foreach ( $ table -> getIndexes ( ) as $ index ) $ res .= $ this -> createIndex ( $ index ) ; foreach ( $ table -> getForeignKeys ( ) as $ key ) $ res .= $ this -> createForeignKey ( $ key ) ; $ res .= "\n});\n\n" ; return $ res ; }
Generate code to create a table.
@param  string                      $tableName
@param  \Doctrine\DBAL\Schema\Table $table
@return string
Generate code to create a table .