mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
rename var
This commit is contained in:
parent
1dd81488aa
commit
2ac68a55a4
@ -299,8 +299,8 @@ class DataQuery
|
||||
$collisionClasses = ClassInfo::subclassesFor($collisionClass);
|
||||
$collisionClassesSQL = implode(', ', Convert::raw2sql($collisionClasses, true));
|
||||
// Only add clause if this is already joined "Unknown column 'ClassName' error"
|
||||
$collisionTable = $schema->tableForField($collisionClass, 'ClassName');
|
||||
if (array_key_exists($collisionTable, $query->getFrom())) {
|
||||
$collisionTableForClassName = $schema->tableForField($collisionClass, 'ClassName');
|
||||
if (array_key_exists($collisionTableForClassName, $query->getFrom())) {
|
||||
$caseClauses[] = "WHEN {$collisionClassColumn} IN ({$collisionClassesSQL}) THEN $collision";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user