File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -515,7 +515,9 @@ public function forUpdate(ConflictResolutionMode $conflictResolutionMode = Confl
515515 *
516516 * <code>
517517 * $qb = $conn->createQueryBuilder()
518- * ->union('SELECT 1 AS field1', 'SELECT 2 AS field1');
518+ * ->union('SELECT 1 AS field1')
519+ * ->addUnion('SELECT 2 AS field1')
520+ * ->addUnion('SELECT 3 AS field1');
519521 * </code>
520522 *
521523 * @return $this
@@ -537,7 +539,8 @@ public function union(string|QueryBuilder $part): self
537539 * <code>
538540 * $qb = $conn->createQueryBuilder()
539541 * ->union('SELECT 1 AS field1')
540- * ->addUnion('SELECT 2 AS field1', 'SELECT 3 AS field1')
542+ * ->addUnion('SELECT 2 AS field1')
543+ * ->addUnion('SELECT 3 AS field1');
541544 * </code>
542545 *
543546 * @return $this
You can’t perform that action at this time.
0 commit comments