summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2015-03-02 18:36:21 +0100
committerAndrey Andreev <narf@devilix.net>2015-03-02 18:36:21 +0100
commit09d4de9b04303888f85fc036359547557e2b00b0 (patch)
treee47b4aeacf99d858449de280e7aaf99bd3352978
parent43ba5a2da25ff1e0af527da92d89063a3f9d4263 (diff)
parentd829a5fe5cd8116f22d757e0aaa8b88d71576aa0 (diff)
Merge pull request #3639 from sv3tli0/patch-1
[ci skip] Missing variable in example docs
-rw-r--r--user_guide_src/source/database/results.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/user_guide_src/source/database/results.rst b/user_guide_src/source/database/results.rst
index a22c2e8c3..ac44566d3 100644
--- a/user_guide_src/source/database/results.rst
+++ b/user_guide_src/source/database/results.rst
@@ -102,7 +102,7 @@ You can also add a second String parameter, which is the name of a class
to instantiate the row with::
$query = $this->db->query("SELECT * FROM users LIMIT 1;");
- $query->row(0, 'User');
+ $row = $query->row(0, 'User');
echo $row->name; // access attributes
echo $row->reverse_name(); // or methods defined on the 'User' class
@@ -431,4 +431,4 @@ Class Reference
:rtype: array
Returns an array containing the field names in the
- result set. \ No newline at end of file
+ result set.