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_product'); $tMap->setPhpName('GiftCardHasProduct'); $tMap->setUseIdGenerator(false); $tMap->addForeignPrimaryKey('GIFT_CARD_ID', 'GiftCardId', 'int' , CreoleTypes::INTEGER, 'st_gift_card', 'ID', true, null); $tMap->addForeignPrimaryKey('PRODUCT_ID', 'ProductId', 'int' , CreoleTypes::INTEGER, 'st_product', 'ID', true, null); } // doBuild() } // GiftCardHasProductMapBuilder