nette/nette — pull request #653 by juzna (2012-05-15 23:04:21+00:00)
Title: DB - related() on GroupedSelection

i.e. when you apply related() twice, it won't work.

Suppose two *companies*, each with one *author*, each with two *books*. To output them all, you'd write three *foreach loops* (see the test case). There, the *inner foreach* doesn't work properly and will return items only for the first author.