Skip to content
This repository has been archived by the owner on Nov 26, 2017. It is now read-only.

Commit

Permalink
update docs. thanks @dbhurley
Browse files Browse the repository at this point in the history
  • Loading branch information
dongilbert committed Oct 22, 2013
1 parent 57f6eac commit 305edce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Joomla/Database/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ The `Database\DatabaseIterator` class allows iteration over database results

```php
$db = DatabaseDriver::getInstance($options);
$iterator = $dbo->setQuery(
$dbo->getQuery(true)->select('*')->from('#__content')
$iterator = $db->setQuery(
$db->getQuery(true)->select('*')->from('#__content')
)->getIterator();

foreach ($iterator as $row)
Expand Down

0 comments on commit 305edce

Please sign in to comment.