DbRepository: Remove the table prefix when resolving statement columns

refs #8826
This commit is contained in:
Johannes Meyer 2015-05-20 11:50:09 +02:00
parent bd07f78d94
commit 0dda19dc7a
1 changed files with 1 additions and 1 deletions

View File

@ -348,7 +348,7 @@ abstract class DbRepository extends Repository implements Extensible, Updatable,
return $statementColumnMap[$alias];
}
$prefixedAlias = $table . '.' . $alias;
$prefixedAlias = $this->removeTablePrefix($table) . '.' . $alias;
if (isset($statementColumnMap[$prefixedAlias])) {
return $statementColumnMap[$prefixedAlias];
}