diff --git a/src/lib/Mothership/Magerun/Base/Command/Workflow/AbstractWorkflow.php b/src/lib/Mothership/Magerun/Base/Command/Workflow/AbstractWorkflow.php index ffb61f5..96e2c87 100644 --- a/src/lib/Mothership/Magerun/Base/Command/Workflow/AbstractWorkflow.php +++ b/src/lib/Mothership/Magerun/Base/Command/Workflow/AbstractWorkflow.php @@ -188,7 +188,7 @@ abstract public function initialize(); */ public function fetchAll($sql, array $args = [], $pdoFetchType = \PDO::FETCH_ASSOC) { - $pdo = \Mage::getSingleton('core/resource')->getConnection('core_read')->getConnection(); + $pdo = \Mage::getSingleton('core/resource')->getConnection('core_write')->getConnection(); $stmt = $pdo->prepare($sql); $stmt->execute($args); @@ -215,7 +215,7 @@ public function fetchAll($sql, array $args = [], $pdoFetchType = \PDO::FETCH_ASS */ public function fetch($sql, array $args = [], $pdoFetchType = \PDO::FETCH_ASSOC) { - $pdo = \Mage::getSingleton('core/resource')->getConnection('core_read')->getConnection(); + $pdo = \Mage::getSingleton('core/resource')->getConnection('core_write')->getConnection(); $stmt = $pdo->prepare($sql); $stmt->execute($args);