protected function setUp() { include __DIR__ . '/../../../Fixtures/reverse/mysql/build/conf/reverse-bookstore-conf.php'; $this->con = Propel::getConnection('reverse-bookstore'); $this->parser = new MysqlSchemaParser($this->con); $this->platform = new MysqlPlatform(); $this->parser->setGeneratorConfig(new QuickGeneratorConfig()); $this->parser->setPlatform($this->platform); parent::setUp(); }
protected function setUp() { $config = sprintf('%s-conf.php', $this->databaseName); $path = 'reverse-bookstore' === $this->databaseName ? 'reverse/mysql' : $this->databaseName; include __DIR__ . '/../../../Fixtures/' . $path . '/build/conf/' . $config; $this->con = Propel::getConnection($this->databaseName); $this->parser = $this->getParser($this->con); $this->platform = $this->getPlatform(); $this->parser->setGeneratorConfig(new QuickGeneratorConfig()); $this->parser->setPlatform($this->platform); parent::setUp(); }