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('bookstore'); $tMap = $this->dbMap->addTable('publisher'); $tMap->setPhpName('Publisher'); $tMap->setUseIdGenerator(true); $tMap->addPrimaryKey('ID', 'Id', 'int', CreoleTypes::INTEGER, true); $tMap->addColumn('NAME', 'Name', 'string', CreoleTypes::VARCHAR, true, 128); } // doBuild() } // PublisherMapBuilder