change getting propel connection
This commit is contained in:
@@ -83,7 +83,7 @@ class Thelia extends Kernel
|
|||||||
if ($this->isDebug()) {
|
if ($this->isDebug()) {
|
||||||
$serviceContainer->setLogger('defaultLogger', Tlog::getInstance());
|
$serviceContainer->setLogger('defaultLogger', Tlog::getInstance());
|
||||||
|
|
||||||
$con = Propel::getConnection("thelia");
|
$con = Propel::getConnection(\Thelia\Model\Map\ProductTableMap::DATABASE_NAME);
|
||||||
$con->useDebug(true);
|
$con->useDebug(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ $thelia = new Thelia\Core\Thelia("dev", true);
|
|||||||
|
|
||||||
$faker = Faker\Factory::create();
|
$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();
|
$con->beginTransaction();
|
||||||
try {
|
try {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user