nette/nette — pull request #883 by hrach (2012-11-30 23:13:57+00:00)
Title: Database: fix strange PHP bug [Closes #845]

This is done by some weird php bug. After couple of hours of debugging (with xdebug) I do not know why this is happending. Another possible solution to fix this is:
```
foreach (dump($this->rows) as $key => $row) {

// or more easily:

foreach (id($this->rows) as $key => $row) {
// where id is
function id ($a) { return $a; }
```

I was not able to extract this behaviour to open bug on php.net. Testacase for nette is located at #845.