Fix DataQuery::applyRelation for multiple relations of the same class (fixes #3546)
Merge pull request #3547 from kinglozzer/pulls/3546-apply-relation

Fix DataQuery::applyRelation for multiple relations of the same class (fixes #3546)