/** * 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; }
/** * 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; }