|
@@ -408,7 +408,7 @@ discard block |
|
|
block discarded – undo |
|
408
|
408
|
*/ |
|
409
|
409
|
protected function correctTable(string $table): string |
|
410
|
410
|
{ |
|
411
|
|
- return empty($table) ? $this->basicRecord->getMapper()->getAlias() : $table ; |
|
|
411
|
+ return empty($table) ? $this->basicRecord->getMapper()->getAlias() : $table; |
|
412
|
412
|
} |
|
413
|
413
|
|
|
414
|
414
|
/** |
|
@@ -419,7 +419,7 @@ discard block |
|
|
block discarded – undo |
|
419
|
419
|
*/ |
|
420
|
420
|
protected function correctColumn(string $table, string $column) |
|
421
|
421
|
{ |
|
422
|
|
- $record = !empty($table) ? $this->recordLookup($table)->getRecord() : $this->basicRecord ; |
|
|
422
|
+ $record = !empty($table) ? $this->recordLookup($table)->getRecord() : $this->basicRecord; |
|
423
|
423
|
$relations = $record->getMapper()->getRelations(); |
|
424
|
424
|
if (empty($relations[$column])) { |
|
425
|
425
|
throw new MapperException(sprintf('Unknown relation key *%s* in mapper for table *%s*', $column, $table)); |
Please login to merge, or discard this patch.