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();