Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Morgan Pichat committed Jul 27, 2023
1 parent 05d6e00 commit c42287d
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion install-dev/init.php
Expand Up @@ -23,7 +23,7 @@
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*/
use Doctrine\DBAL\DBALException;
use Doctrine\DBAL\Exception as DBALException;

ob_start();

Expand Down
2 changes: 1 addition & 1 deletion src/Adapter/Cache/MemcacheServerManager.php
Expand Up @@ -118,6 +118,6 @@ public function deleteServer($serverId)
*/
public function getServers()
{
return $this->connection->fetchAll('SELECT * FROM ' . $this->tableName, []);
return $this->connection->fetchAllAssociative('SELECT * FROM ' . $this->tableName, []);
}
}
4 changes: 2 additions & 2 deletions src/Adapter/Import/ImportEntityDeleter.php
Expand Up @@ -278,7 +278,7 @@ private function deleteCombinations()
*
* @param array $tables
*
* @throws \Doctrine\DBAL\DBALException
* @throws \Doctrine\DBAL\Exception
*/
private function truncateTables(array $tables)
{
Expand All @@ -292,7 +292,7 @@ private function truncateTables(array $tables)
*
* @param array $tables
*
* @throws \Doctrine\DBAL\DBALException
* @throws \Doctrine\DBAL\Exception
*/
private function truncateTablesIfExist(array $tables)
{
Expand Down
Expand Up @@ -29,7 +29,7 @@
namespace PrestaShop\PrestaShop\Adapter\Product\Combination\Update;

use Doctrine\DBAL\Connection;
use Doctrine\DBAL\DBALException;
use Doctrine\DBAL\Exception as DBALException;
use Doctrine\DBAL\Exception\InvalidArgumentException;
use PrestaShop\PrestaShop\Core\Domain\Product\Combination\ValueObject\CombinationId;
use PrestaShop\PrestaShop\Core\Domain\Product\Image\ValueObject\ImageId;
Expand Down
Expand Up @@ -29,7 +29,7 @@
namespace PrestaShop\PrestaShop\Adapter\Product\FeatureValue\Update;

use Doctrine\DBAL\Connection;
use Doctrine\DBAL\DBALException;
use Doctrine\DBAL\Exception as DBALException;
use Doctrine\DBAL\Exception\InvalidArgumentException;
use FeatureValue;
use PrestaShop\PrestaShop\Adapter\Feature\Repository\FeatureRepository;
Expand Down
2 changes: 1 addition & 1 deletion src/PrestaShopBundle/Command/UpdateSchemaCommand.php
Expand Up @@ -102,7 +102,7 @@ public function execute(InputInterface $input, OutputInterface $output)
throw ($e);
}
}
if (!$connection->getWrappedConnection() instanceof PDO || $connection->getWrappedConnection()->inTransaction()) {
if (!$connection->getNativeConnection() instanceof PDO || $connection->getNativeConnection()->inTransaction()) {
$connection->commit();
}

Expand Down

0 comments on commit c42287d

Please sign in to comment.