/** * Get the Platform object for this class * * @return Platform */ protected function getPlatform() { static $platform; if (!$platform) { $platform = new MysqlPlatform(); $config = new GeneratorConfig(); $config->setBuildProperties(array('propel.mysql.tableType' => 'InnoDB')); $platform->setGeneratorConfig($config); } return $platform; }
/** * Get the Platform object for this class * * @return MysqlPlatform */ protected function getPlatform() { static $platform; if (!$platform) { $platform = new MysqlPlatform(); $configProp['propel']['database']['adapters']['mysql']['tableType'] = 'InnoDB'; $config = new GeneratorConfig(__DIR__ . '/../../../../Fixtures/bookstore', $configProp); $platform->setGeneratorConfig($config); } return $platform; }