Commit 5b796aeb authored by Fabien Potencier's avatar Fabien Potencier

merged branch rarcega/patch-1 (PR #466)

Commits
-------

38b49276 Update doc/providers/doctrine.rst

Discussion
----------

Update doc/providers/doctrine.rst

Changed method call from `execute` to `executeUpdate` - no such method exists in Doctrine's DBAL API: http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/data-retrieval-and-manipulation.html#api

---------------------------------------------------------------------------

by igorw at 2012-08-21T09:13:54Z

👍
parents 46639282 38b49276
...@@ -126,7 +126,7 @@ Using multiple connections:: ...@@ -126,7 +126,7 @@ Using multiple connections::
$post = $app['dbs']['mysql_read']->fetchAssoc($sql, array((int) $id)); $post = $app['dbs']['mysql_read']->fetchAssoc($sql, array((int) $id));
$sql = "UPDATE posts SET value = ? WHERE 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>". return "<h1>{$post['title']}</h1>".
"<p>{$post['body']}</p>"; "<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