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('node_news'); $tMap->setPhpName('NodeNews'); $tMap->setUseIdGenerator(true); $tMap->addPrimaryKey('ID', 'Id', 'int', CreoleTypes::INTEGER, true, null); $tMap->addForeignKey('NODE_ID', 'NodeId', 'int', CreoleTypes::INTEGER, 'node', 'ID', false, null); $tMap->addColumn('PUBLISHED_AT', 'PublishedAt', 'int', CreoleTypes::TIMESTAMP, false, null); $tMap->addColumn('INTRODUCTION', 'Introduction', 'string', CreoleTypes::LONGVARCHAR, false, null); $tMap->addColumn('CONTENT', 'Content', 'string', CreoleTypes::LONGVARCHAR, false, null); $tMap->addColumn('PICTURE', 'Picture', 'string', CreoleTypes::VARCHAR, false, 255); } // doBuild() } // NodeNewsMapBuilder