File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
user_guide_src/source/models Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,10 @@ Connecting to the Database
6969==========================
7070
7171When 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
7376modify which group is used on a per-model basis by adding the ``$DBGroup `` property to your class.
7477This ensures that within the model any references to ``$this->db `` are made through the appropriate
7578connection.
You can’t perform that action at this time.
0 commit comments