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_slide_banner'); $tMap->setPhpName('SlideBanner'); $tMap->setUseIdGenerator(true); $tMap->addColumn('CREATED_AT', 'CreatedAt', 'int', CreoleTypes::TIMESTAMP, false, null); $tMap->addColumn('UPDATED_AT', 'UpdatedAt', 'int', CreoleTypes::TIMESTAMP, false, null); $tMap->addPrimaryKey('ID', 'Id', 'int', CreoleTypes::INTEGER, true, null); $tMap->addForeignKey('LANGUAGE_ID', 'LanguageId', 'int', CreoleTypes::INTEGER, 'st_language', 'ID', true, null); $tMap->addColumn('IMAGE', 'Image', 'string', CreoleTypes::VARCHAR, false, 255); $tMap->addColumn('IMAGE_SMALL', 'ImageSmall', 'string', CreoleTypes::VARCHAR, false, 255); $tMap->addColumn('VIDEO_MP4', 'VideoMp4', 'string', CreoleTypes::VARCHAR, false, 255); $tMap->addColumn('VIDEO_MP4_LINK', 'VideoMp4Link', 'string', CreoleTypes::VARCHAR, false, 255); $tMap->addColumn('BANNER_TYPE', 'BannerType', 'int', CreoleTypes::INTEGER, true, null); $tMap->addColumn('LINK', 'Link', 'string', CreoleTypes::VARCHAR, false, 255); $tMap->addColumn('GROUP_NAME', 'GroupName', 'string', CreoleTypes::VARCHAR, false, 255); $tMap->addColumn('DESCRIPTION', 'Description', 'string', CreoleTypes::LONGVARCHAR, false, null); $tMap->addColumn('BANNER_TITLE', 'BannerTitle', 'string', CreoleTypes::VARCHAR, false, 255); $tMap->addColumn('BANNER_DESCRIPTION', 'BannerDescription', 'string', CreoleTypes::LONGVARCHAR, false, null); $tMap->addColumn('BUTTON_TEXT', 'ButtonText', 'string', CreoleTypes::VARCHAR, false, 255); $tMap->addColumn('BUTTON_LINK', 'ButtonLink', 'string', CreoleTypes::VARCHAR, false, 255); $tMap->addColumn('BANNER_DESCRIPTION_POSITION', 'BannerDescriptionPosition', 'int', CreoleTypes::INTEGER, true, null); $tMap->addColumn('BANNER_MARGIN_LEFT', 'BannerMarginLeft', 'string', CreoleTypes::VARCHAR, false, 255); $tMap->addColumn('BANNER_MARGIN_RIGHT', 'BannerMarginRight', 'string', CreoleTypes::VARCHAR, false, 255); $tMap->addColumn('BANNER_BG_TEXT', 'BannerBgText', 'boolean', CreoleTypes::BOOLEAN, false, null); $tMap->addColumn('BANNER_BG_OUT', 'BannerBgOut', 'boolean', CreoleTypes::BOOLEAN, false, null); $tMap->addColumn('BANNER_TEXT_ALIGN', 'BannerTextAlign', 'int', CreoleTypes::INTEGER, false, null); $tMap->addColumn('IS_ACTIVE', 'IsActive', 'boolean', CreoleTypes::BOOLEAN, true, null); $tMap->addColumn('OPT_CULTURE', 'OptCulture', 'string', CreoleTypes::VARCHAR, true, 7); $tMap->addColumn('RANK', 'Rank', 'int', CreoleTypes::INTEGER, false, null); } // doBuild() } // SlideBannerMapBuilder