File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 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
5454 private ?CommandSubscriber $ commandSubscriber = null ;
5555
5656 /** @var bool Whether to rename the rename "id" into "_id" for embedded documents. */
57- private bool $ renameEmbeddedIdField = true ;
57+ private bool $ renameEmbeddedIdField ;
5858
5959 /**
6060 * Create a new database connection instance.
@@ -83,6 +83,8 @@ public function __construct(array $config)
8383 $ this ->useDefaultSchemaGrammar ();
8484
8585 $ this ->useDefaultQueryGrammar ();
86+
87+ $ this ->renameEmbeddedIdField = $ config ['rename_embedded_id_field ' ] ?? true ;
8688 }
8789
8890 /**
Original file line number Diff line number Diff line change @@ -126,8 +126,6 @@ class Builder extends BaseBuilder
126126 */
127127 public $ options = [];
128128
129- private ?bool $ renameEmbeddedIdField ;
130-
131129 /**
132130 * All of the available clause operators.
133131 *
You can’t perform that action at this time.
0 commit comments