/**
  * Add a new table object to the database.
  *
  * @param \Propel\Runtime\Map\TableMap $table The table to add
  */
 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;
 }
示例#2
0
 /**
  * Add a new table object to the database.
  *
  * @param      \Propel\Runtime\Map\TableMap $table The table to add
  */
 public function addTableObject(TableMap $table)
 {
     $table->setDatabaseMap($this);
     $this->tables[$table->getName()] = $table;
     $this->tablesByPhpName[$table->getClassname()] = $table;
 }