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'); $tMap->setPhpName('GiftCard'); $tMap->setUseIdGenerator(true); $tMap->addPrimaryKey('ID', 'Id', 'int', CreoleTypes::INTEGER, true, null); $tMap->addColumn('STATUS', 'Status', 'string', CreoleTypes::VARCHAR, false, 1); $tMap->addColumn('AMOUNT', 'Amount', 'double', CreoleTypes::DECIMAL, true, 10); $tMap->addColumn('MIN_ORDER_AMOUNT', 'MinOrderAmount', 'int', CreoleTypes::INTEGER, true, null); $tMap->addColumn('CODE', 'Code', 'string', CreoleTypes::VARCHAR, true, 64); $tMap->addColumn('VALID_TO', 'ValidTo', 'int', CreoleTypes::DATE, false, null); $tMap->addForeignKey('CURRENCY_ID', 'CurrencyId', 'int', CreoleTypes::INTEGER, 'st_currency', 'ID', true, null); $tMap->addColumn('ALLOW_ALL_PRODUCTS', 'AllowAllProducts', 'boolean', CreoleTypes::BOOLEAN, false, null); } // doBuild() } // GiftCardMapBuilder