public function addTableFromMapClass($tableMapClass)
    {
        $table = new $tableMapClass();
        if (!$this->hasTable($table->getName())) {
            $this->addTableObject($table);

            return $table;
        } else {
            return $this->getTable($table->getName());
        }
    }
public function addTableFromMapClass($tableMapClass)
    {
        $table = new $tableMapClass();
        if (!$this->hasTable($table->getName())) {
            $this->addTableObject($table);

            return $table;
        } else {
            return $this->getTable($table->getName());
        }
    }
public function addTableFromMapClass ( $ tableMapClass ) { $ table = new $ tableMapClass ( ) ; if ( ! $ this -> hasTable ( $ table -> getName ( ) ) ) { $ this -> addTableObject ( $ table ) ; return $ table ; } else { return $ this -> getTable ( $ table -> getName ( ) ) ; } }
Add a new table to the database, using the tablemap class name.

@param string $tableMapClass The name of the table map to add

@return TableMap The TableMap object
Add a new table to the database using the tablemap class name .