Skip to content

Commit

Permalink
Merge pull request #59 from mothership-gmbh/develop
Browse files Browse the repository at this point in the history
Update AbstractWorkflow.php
  • Loading branch information
azngeek authored May 2, 2017
2 parents 7bda772 + 1c20324 commit 52fc049
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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);

Expand Down

0 comments on commit 52fc049

Please sign in to comment.