Commit 38b49276 authored by rarcega's avatar rarcega

Update doc/providers/doctrine.rst

Changed method call from execute to executeUpdate - no such method exists in Doctrine's DBAL API
parent 6d7cf048
......@@ -126,7 +126,7 @@ Using multiple connections::
$post = $app['dbs']['mysql_read']->fetchAssoc($sql, array((int) $id));
$sql = "UPDATE posts SET value = ? WHERE id = ?";
$app['dbs']['mysql_write']->execute($sql, array('newValue', (int) $id));
$app['dbs']['mysql_write']->executeUpdate($sql, array('newValue', (int) $id));
return "<h1>{$post['title']}</h1>".
"<p>{$post['body']}</p>";
......
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