File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ class Connection extends BaseConnection
54
54
private ?CommandSubscriber $ commandSubscriber = null ;
55
55
56
56
/** @var bool Whether to rename the rename "id" into "_id" for embedded documents. */
57
- private bool $ renameEmbeddedIdField = true ;
57
+ private bool $ renameEmbeddedIdField ;
58
58
59
59
/**
60
60
* Create a new database connection instance.
@@ -83,6 +83,8 @@ public function __construct(array $config)
83
83
$ this ->useDefaultSchemaGrammar ();
84
84
85
85
$ this ->useDefaultQueryGrammar ();
86
+
87
+ $ this ->renameEmbeddedIdField = $ config ['rename_embedded_id_field ' ] ?? true ;
86
88
}
87
89
88
90
/**
Original file line number Diff line number Diff line change @@ -125,8 +125,6 @@ class Builder extends BaseBuilder
125
125
*/
126
126
public $ options = [];
127
127
128
- private ?bool $ renameEmbeddedIdField ;
129
-
130
128
/**
131
129
* All of the available clause operators.
132
130
*
You can’t perform that action at this time.
0 commit comments