Skip to content

Commit bbdd9bd

Browse files
committed
Add doc on builder parameter
1 parent f3a2d38 commit bbdd9bd

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

user_guide_src/source/models/model.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,10 @@ need it::
670670

671671
$builder = $userModel->builder();
672672

673-
This builder is already set up with the model's $table.
673+
This builder is already set up with the model's $table. If you need access to another table
674+
you can pass it in as a parameter, but be aware that this will not return a shared instance::
675+
676+
$groupBuilder = $userModel->builder('groups');
674677

675678
You can also use Query Builder methods and the Model's CRUD methods in the same chained call, allowing for
676679
very elegant use::

0 commit comments

Comments
 (0)