From d6e558d6cf4875fe03f134d990dcec7a1da53cf8 Mon Sep 17 00:00:00 2001 From: Bohan Yang Date: Wed, 31 Jan 2024 01:06:08 +0000 Subject: [PATCH] Fix returning --- packages/mango/Doctrine/Query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mango/Doctrine/Query.php b/packages/mango/Doctrine/Query.php index 8b3ea1c..9009a74 100644 --- a/packages/mango/Doctrine/Query.php +++ b/packages/mango/Doctrine/Query.php @@ -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();