diff --git a/core/lib/Thelia/Core/Thelia.php b/core/lib/Thelia/Core/Thelia.php index 63366c208..b023a4eab 100755 --- a/core/lib/Thelia/Core/Thelia.php +++ b/core/lib/Thelia/Core/Thelia.php @@ -83,7 +83,7 @@ class Thelia extends Kernel if ($this->isDebug()) { $serviceContainer->setLogger('defaultLogger', Tlog::getInstance()); - $con = Propel::getConnection("thelia"); + $con = Propel::getConnection(\Thelia\Model\Map\ProductTableMap::DATABASE_NAME); $con->useDebug(true); } } diff --git a/install/faker.php b/install/faker.php index de6f6fdfb..925e83e5c 100755 --- a/install/faker.php +++ b/install/faker.php @@ -5,7 +5,7 @@ $thelia = new Thelia\Core\Thelia("dev", true); $faker = Faker\Factory::create(); -$con = \Propel::getConnection(Thelia\Model\ProductPeer::DATABASE_NAME); +$con = \Propel\Runtime\Propel::getConnection(Thelia\Model\Map\ProductTableMap::DATABASE_NAME); $con->beginTransaction(); try {