Skip to content

Commit

Permalink
Fix returning
Browse files Browse the repository at this point in the history
  • Loading branch information
Bohan Yang committed Jan 31, 2024
1 parent e44e06f commit d6e558d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mango/Doctrine/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ public function queryWithWriteLock(): self
public function returning(?string ...$selects): self
{
$select = $this->schema->createQuery()
->from($this->selectTableMap[$this->fromAlias]->getName())
->from($this->selectTableMap[$this->fromAlias]->getName(), $this->fromAlias)
->select(...$selects);
$selectSql = $select->getSQL();
Expand Down

0 comments on commit d6e558d

Please sign in to comment.