/** * Add a new table object to the database. * * @param TableMap $table The table to add */ public function addTableObject(TableMap $table) { $table->setDatabaseMap($this); $this->tables[$table->getName()] = $table; $this->tablesByPhpName[$table->getClassname()] = $table; }