Quote table/column names when falling back to $fullName

This commit is contained in:
Simon Welsh 2013-07-05 10:41:18 +12:00
parent c3e9e44204
commit 5dc5e0b4c5

View File

@ -183,7 +183,8 @@ abstract class SearchFilter extends Object {
if($candidateClass == 'DataObject') {
// fallback to the provided name in the event of a joined column
// name (as the candidate class doesn't check joined records)
return $this->fullName;
$parts = explode('.', $this->fullName);
return '"' . implode('"."', $parts) . '"';
}
return "\"$candidateClass\".\"$this->name\"";