DbRepository: Remove the table prefix when resolving statement columns
refs #8826
This commit is contained in:
parent
bd07f78d94
commit
0dda19dc7a
|
@ -348,7 +348,7 @@ abstract class DbRepository extends Repository implements Extensible, Updatable,
|
||||||
return $statementColumnMap[$alias];
|
return $statementColumnMap[$alias];
|
||||||
}
|
}
|
||||||
|
|
||||||
$prefixedAlias = $table . '.' . $alias;
|
$prefixedAlias = $this->removeTablePrefix($table) . '.' . $alias;
|
||||||
if (isset($statementColumnMap[$prefixedAlias])) {
|
if (isset($statementColumnMap[$prefixedAlias])) {
|
||||||
return $statementColumnMap[$prefixedAlias];
|
return $statementColumnMap[$prefixedAlias];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue