Add a new table object to the database.

@param \Propel\Runtime\Map\TableMap $table The table to add
516384
public function addTableObject(TableMap $table)
    {
        $table->setDatabaseMap($this);
        $this->tables[$table->getName()] = $table;
        $phpName = $table->getClassName();
        if ('\\' !== $phpName[0]) {
            $phpName = '\\' . $phpName;
        }
        $this->tablesByPhpName[$phpName] = $table;
    }
1073103
public static function buildTableMap()
    {
        $dbMap = Propel::getServiceContainer()->getDatabaseMap(KstrukturTableMap::DATABASE_NAME);
        if (!$dbMap->hasTable(KstrukturTableMap::TABLE_NAME)) {
            $dbMap->addTableObject(new KstrukturTableMap());
        }
    }
654412
protected function addColumns(Table $table)
    {
        $stmt = $this->dbh->query("PRAGMA table_info('" . $table->getName() . "')");

        while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {

            $name = $row['name'];

            $fulltype = $row['type'];
            $size = null;
            $precision = null;
            $scale = null;

            if (preg_match('/^([^\(]+)\(\s*(\d+)\s*,\s*(\d+)\s*\)$/', $fulltype, $matches)) {
                $type = $matches[1];
                $precision = $matches[2];
                $scale = $matches[3]; // aka precision
            } elseif (preg_match('/^([^\(]+)\(\s*(\d+)\s*\)$/', $fulltype, $matches)) {
                $type = $matches[1];
                $size = $matches[2];
            } else {
                $type = $fulltype;
            }
            // If column is primary key and of type INTEGER, it is auto increment
            // See: http://sqlite.org/faq.html#q1
            $autoincrement = ($row['pk'] == 1 && strtolower($type) == 'integer');
            $not_null = $row['notnull'];
            $default = $row['dflt_value'];

            $propelType = $this->getMappedPropelType(strtolower($type));
            if (!$propelType) {
                $propelType = Column::DEFAULT_TYPE;
                $this->warn("Column [" . $table->getName() . "." . $name . "] has a column type (" . $type . ") that Propel does not support.");
            }

            $column = new Column($name);
            $column->setTable($table);
            $column->setDomainForType($propelType);
            // We may want to provide an option to include this:
            // $column->getDomain()->replaceSqlType($type);
            $column->getDomain()->replaceSize($size);
            $column->getDomain()->replaceScale($scale);
            if ($default !== null) {
                $column->getDomain()->setDefaultValue(new ColumnDefaultValue($default, ColumnDefaultValue::TYPE_VALUE));
            }
            $column->setAutoIncrement($autoincrement);
            $column->setNotNull($not_null);

            if (($row['pk'] == 1) || (strtolower($type) == 'integer')) {
                $column->setPrimaryKey(true);
            }

            $table->addColumn($column);
        }
    }
1007607
public static function buildTableMap()
    {
      $dbMap = Propel::getServiceContainer()->getDatabaseMap(DealerContentTableMap::DATABASE_NAME);
      if (!$dbMap->hasTable(DealerContentTableMap::TABLE_NAME)) {
        $dbMap->addTableObject(new DealerContentTableMap());
      }
    }
1262615
public static function buildTableMap()
    {
        $dbMap = Propel::getServiceContainer()->getDatabaseMap(MxmapTableMap::DATABASE_NAME);
        if (!$dbMap->hasTable(MxmapTableMap::TABLE_NAME)) {
            $dbMap->addTableObject(new MxmapTableMap());
        }
    }
1265786
public static function buildTableMap()
    {
      $dbMap = Propel::getServiceContainer()->getDatabaseMap(PersonTeamLinkTableMap::DATABASE_NAME);
      if (!$dbMap->hasTable(PersonTeamLinkTableMap::TABLE_NAME)) {
        $dbMap->addTableObject(new PersonTeamLinkTableMap());
      }
    }
606768
public static function buildTableMap()
    {
      $dbMap = Propel::getServiceContainer()->getDatabaseMap(FeatureFeatureTypeTableMap::DATABASE_NAME);
      if (!$dbMap->hasTable(FeatureFeatureTypeTableMap::TABLE_NAME)) {
        $dbMap->addTableObject(new FeatureFeatureTypeTableMap());
      }
    }
848388
public static function buildTableMap()
    {
        $dbMap = Propel::getServiceContainer()->getDatabaseMap(IndexEngineIndexTableMap::DATABASE_NAME);
        if (!$dbMap->hasTable(IndexEngineIndexTableMap::TABLE_NAME)) {
            $dbMap->addTableObject(new IndexEngineIndexTableMap());
        }
    }
379089
public static function buildTableMap()
    {
      $dbMap = Propel::getServiceContainer()->getDatabaseMap(TeamVersionTableMap::DATABASE_NAME);
      if (!$dbMap->hasTable(TeamVersionTableMap::TABLE_NAME)) {
        $dbMap->addTableObject(new TeamVersionTableMap());
      }
    }
1094898
public function initialize(Table $table)
    {
        $this->table = $table;
        $this->table->setTableId($this->tableId);
    }
1027463
public static function buildTableMap()
    {
      $dbMap = Propel::getServiceContainer()->getDatabaseMap(PersonFunctionVersionTableMap::DATABASE_NAME);
      if (!$dbMap->hasTable(PersonFunctionVersionTableMap::TABLE_NAME)) {
        $dbMap->addTableObject(new PersonFunctionVersionTableMap());
      }
    }
1352493
public static function buildTableMap()
    {
        $dbMap = Propel::getServiceContainer()->getDatabaseMap(ObjectTableMap::DATABASE_NAME);
        if (!$dbMap->hasTable(ObjectTableMap::TABLE_NAME)) {
            $dbMap->addTableObject(new ObjectTableMap());
        }
    }
853130
public static function buildTableMap()
    {
      $dbMap = Propel::getServiceContainer()->getDatabaseMap(PersonImageTableMap::DATABASE_NAME);
      if (!$dbMap->hasTable(PersonImageTableMap::TABLE_NAME)) {
        $dbMap->addTableObject(new PersonImageTableMap());
      }
    }
788873
protected function addIndexes(Table $table)
    {
        $stmt = $this->dbh->query("PRAGMA index_list('" . $table->getName() . "')");

        while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {

            $name = $row['name'];
            $index = new Index($name);

            $stmt2 = $this->dbh->query("PRAGMA index_info('" . $name . "')");
            while ($row2 = $stmt2->fetch(PDO::FETCH_ASSOC)) {
                $colname = $row2['name'];
                $index->addColumn($table->getColumn($colname));
            }

            $table->addIndex($index);
        }
    }
736849
public static function buildTableMap()
    {
      $dbMap = Propel::getServiceContainer()->getDatabaseMap(PersonTeamLinkVersionTableMap::DATABASE_NAME);
      if (!$dbMap->hasTable(PersonTeamLinkVersionTableMap::TABLE_NAME)) {
        $dbMap->addTableObject(new PersonTeamLinkVersionTableMap());
      }
    }
484207
public static function buildTableMap()
    {
        $dbMap = Propel::getServiceContainer()->getDatabaseMap(UserTableMap::DATABASE_NAME);
        if (!$dbMap->hasTable(UserTableMap::TABLE_NAME)) {
            $dbMap->addTableObject(new UserTableMap());
        }
    }
51589
public static function buildTableMap()
    {
      $dbMap = Propel::getServiceContainer()->getDatabaseMap(DealerVersionTableMap::DATABASE_NAME);
      if (!$dbMap->hasTable(DealerVersionTableMap::TABLE_NAME)) {
        $dbMap->addTableObject(new DealerVersionTableMap());
      }
    }