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_gift_card_has_category'); $tMap->setPhpName('GiftCardHasCategory'); $tMap->setUseIdGenerator(false); $tMap->addForeignPrimaryKey('GIFT_CARD_ID', 'GiftCardId', 'int' , CreoleTypes::INTEGER, 'st_gift_card', 'ID', true, null); $tMap->addForeignPrimaryKey('CATEGORY_ID', 'CategoryId', 'int' , CreoleTypes::INTEGER, 'st_category', 'ID', true, null); $tMap->addColumn('IS_OPT', 'IsOpt', 'boolean', CreoleTypes::BOOLEAN, true, null); } // doBuild() } // GiftCardHasCategoryMapBuilder