Skip to content

Commit 7cd5c99

Browse files
authored
Merge pull request #8074 from kenjis/docs-model-DBGroup
docs: improve $DBGroup description in Model
2 parents f780d75 + c64959e commit 7cd5c99

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

user_guide_src/source/models/model.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ Connecting to the Database
6969
==========================
7070

7171
When the class is first instantiated, if no database connection instance is passed to the constructor,
72-
it will automatically connect to the default database group, as set in the configuration. You can
72+
and if you don't set the ``$DBGroup`` property on your model class,
73+
it will automatically connect to the default database group, as set in the database configuration.
74+
75+
You can
7376
modify which group is used on a per-model basis by adding the ``$DBGroup`` property to your class.
7477
This ensures that within the model any references to ``$this->db`` are made through the appropriate
7578
connection.

0 commit comments

Comments
 (0)