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 @@ -126,8 +126,6 @@ class Builder extends BaseBuilder
126
126
*/
127
127
public $ options = [];
128
128
129
- private ?bool $ renameEmbeddedIdField ;
130
-
131
129
/**
132
130
* All of the available clause operators.
133
131
*
You can’t perform that action at this time.
0 commit comments