silverstripe/sapphire — pull request #568 by simonwelsh (2012-06-24 23:38:11+00:00)
Title: FIX DataQuery::applyRelation was returning the base class.

If the applyRelation() was passed a relation that went to a class with a parent
class with a database table, applyRelation would return the name of the parent
class, rather than the class the relation was actually too.