Repository: Do not return filter columns when requiring all query columns

I really wonder why I did not notice this until now...

refs #8826
This commit is contained in:
Johannes Meyer 2015-05-29 11:36:08 +02:00
parent a88037f45d
commit 3959dc27d7
1 changed files with 9 additions and 1 deletions

View File

@ -653,7 +653,15 @@ abstract class Repository implements Selectable
throw new ProgrammingError('Table name "%s" not found', $table);
}
return $queryColumns[$table];
$filterColumns = $this->getFilterColumns();
$columns = array();
foreach ($queryColumns[$table] as $alias => $column) {
if (! in_array(is_string($alias) ? $alias : $column, $filterColumns)) {
$columns[$alias] = $column;
}
}
return $columns;
}
/**