Commit 825cd7f4 authored by Guilherme Blanco's avatar Guilherme Blanco

[2.0][DDC-529] Fixed undeclared in dbal:run-sql command. Thanks for provided patch, Hannes.

parent 7006f4dd
...@@ -78,7 +78,7 @@ EOT ...@@ -78,7 +78,7 @@ EOT
if (preg_match('/^select/i', $sql)) { if (preg_match('/^select/i', $sql)) {
$resultSet = $conn->fetchAll($sql); $resultSet = $conn->fetchAll($sql);
} else { } else {
$resultSet = $em->getConnection()->executeUpdate($sql); $resultSet = $conn->executeUpdate($sql);
} }
\Doctrine\Common\Util\Debug::dump($resultSet, (int) $depth); \Doctrine\Common\Util\Debug::dump($resultSet, (int) $depth);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment