@@ -3,7 +3,6 @@ |
||
| 3 | 3 | |
| 4 | 4 | use Propel\Runtime\ActiveQuery\ModelCriteria; |
| 5 | 5 | use Propel\Runtime\Map\TableMap; |
| 6 | -use PSFS\base\config\Config; |
|
| 7 | 6 | use PSFS\base\dto\JsonResponse; |
| 8 | 7 | use PSFS\base\dto\Order; |
| 9 | 8 | use PSFS\base\Logger; |
@@ -6,7 +6,6 @@ |
||
| 6 | 6 | use Propel\Runtime\Propel; |
| 7 | 7 | use PSFS\base\config\Config; |
| 8 | 8 | use PSFS\base\Logger; |
| 9 | -use PSFS\base\types\traits\DebugTrait; |
|
| 10 | 9 | |
| 11 | 10 | /** |
| 12 | 11 | * Trait ConnectionTrait |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | protected function createConnection(TableMap $tableMap) |
| 27 | 27 | { |
| 28 | 28 | $this->con = Propel::getConnection($tableMap::DATABASE_NAME); |
| 29 | - if(method_exists($this->con, 'useDebug')) { |
|
| 29 | + if (method_exists($this->con, 'useDebug')) { |
|
| 30 | 30 | Logger::log('Enabling debug queries mode', LOG_INFO); |
| 31 | 31 | $this->con->useDebug(Config::getParam('debug')); |
| 32 | 32 | } |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | if (null !== $this->con && $this->con->inTransaction()) { |
| 44 | 44 | if ($status === 200) { |
| 45 | 45 | $this->con->commit(); |
| 46 | - } else { |
|
| 46 | + }else { |
|
| 47 | 47 | $this->con->rollBack(); |
| 48 | 48 | } |
| 49 | 49 | } |