Skip to content

Commit

Permalink
fix: table alias was set to null in returndocs
Browse files Browse the repository at this point in the history
  • Loading branch information
Deploy committed Jan 19, 2025
1 parent 76eefac commit 5b2c016
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Query/Concerns/HandlesAliases.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ public function getTableAlias(string|Expression $table): float|int|null|string
$table = 'Expression' . spl_object_id($table);
}

if ($this->isTableAlias($table)) {
return $table;
}

if (!isset($this->tableAliases[$table])) {
return null;
}
Expand Down

0 comments on commit 5b2c016

Please sign in to comment.