dbMap !== null); } /** * Gets the databasemap this map builder built. * * @return the databasemap */ public function getDatabaseMap() { return $this->dbMap; } /** * The doBuild() method builds the DatabaseMap * * @return void * @throws PropelException */ public function doBuild() { $this->dbMap = Propel::getDatabaseMap('propel'); $tMap = $this->dbMap->addTable('st_theme_content'); $tMap->setPhpName('ThemeContent'); $tMap->setUseIdGenerator(true); $tMap->addPrimaryKey('ID', 'Id', 'int', CreoleTypes::INTEGER, true, null); $tMap->addForeignKey('THEME_ID', 'ThemeId', 'int', CreoleTypes::INTEGER, 'st_theme', 'ID', true, null); $tMap->addColumn('CONTENT_ID', 'ContentId', 'string', CreoleTypes::VARCHAR, true, 48); $tMap->addColumn('OPT_NAME', 'OptName', 'string', CreoleTypes::VARCHAR, true, 64); $tMap->addColumn('OPT_CONTENT', 'OptContent', 'string', CreoleTypes::LONGVARCHAR, false, null); } // doBuild() } // ThemeContentMapBuilder