SilverStripe\Blog\Model\BlogPostFilter::augmentLoadLazyFields
{@inheritDoc}
This is a fix so that when we try to fetch subclasses of BlogPost, lazy loading includes the BlogPost table in its query. Leaving this table out means the default sort order column PublishDate causes an error.
Signature
public function augmentLoadLazyFields(SQLSelect&
$query,
[DataQuery&
$dataQuery = NULL,
DataObject
$dataObject] )
Parameters
$query
— SilverStripe\ORM\Queries\SQLSelect
$dataQuery
— SilverStripe\ORM\DataQuery
$dataObject
— object