Merge branch 'augmentSQL-on-wrong-class' of git://github.com/creamarketing/sapphire into creamarketing-augmentSQL-on-wrong-class

This commit is contained in:
Ingo Schommer 2012-08-16 23:47:48 +02:00
commit 29b62adec2

View File

@ -227,7 +227,7 @@ class DataQuery {
// TODO: Versioned, Translatable, SiteTreeSubsites, etc, could probably be better implemented as subclasses of DataQuery
$obj = Injector::inst()->get(ClassInfo::baseDataClass($this->dataClass));
$obj = Injector::inst()->get($this->dataClass);
$obj->extend('augmentSQL', $query, $this);
$this->ensureSelectContainsOrderbyColumns($query);