mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge branch 'augmentSQL-on-wrong-class' of git://github.com/creamarketing/sapphire into creamarketing-augmentSQL-on-wrong-class
This commit is contained in:
commit
29b62adec2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user