diff --git a/src/DocumentList.php b/src/DocumentList.php index 02ada88..de3dd32 100644 --- a/src/DocumentList.php +++ b/src/DocumentList.php @@ -50,6 +50,7 @@ class DocumentList if ($debug) echo '*** CALLED GENERATOR ***'; if ($this->result) { + if ($debug) echo 'There are results'; while ($row = $this->result->fetch(PDO::FETCH_ASSOC)) { if ($debug) echo "
Returning an item\n
"; yield $this->mapper->map($row);