protected function _transformQuery()
{
if (!$this->_dirty || $this->_type !== 'select') {
return;
}
if (empty($this->_parts['from'])) {
$this->from([$this->_repository->alias() => $this->_repository->table()]);
}
$this->_addDefaultFields();
$this->eagerLoader()->attachAssociations($this, $this->_repository, !$this->_hasFields);
$this->_addDefaultSelectTypes();
}