Skip to content

Commit 0434b9f

Browse files
committed
Add setAlias() to documentation
1 parent a182f3e commit 0434b9f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

user_guide_src/source/database/query_builder.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1652,6 +1652,14 @@ Class Reference
16521652

16531653
Used for ``*Batch()`` methods to set data for insert, update, upsert.
16541654

1655+
.. php:method:: setAlias($alias)
1656+
1657+
:param string $alias: Alias for table
1658+
:returns: ``BaseBuilder`` instance (method chaining)
1659+
:rtype: ``BaseBuilder``
1660+
1661+
This allows setting an alias for the psuedo table generated with ``setData()``.
1662+
16551663
.. php:method:: setUpdateBatch($key[, $value = ''[, $escape = null]])
16561664
16571665
:param mixed $key: Field name or an array of field/value pairs

0 commit comments

Comments
 (0)