We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a2d027 commit f35ca14Copy full SHA for f35ca14
src/Jenssegers/Mongodb/Eloquent/Model.php
@@ -241,7 +241,7 @@ protected function getAttributeFromArray($key)
241
if (str_contains($key, '.')) {
242
return array_get($this->attributes, $key);
243
}
244
-
+
245
return parent::getAttributeFromArray($key);
246
247
@@ -258,7 +258,9 @@ public function setAttribute($key, $value)
258
$builder = $this->newBaseQueryBuilder();
259
260
$value = $builder->convertKey($value);
261
- } // Support keys in dot notation.
+ }
262
263
+ // Support keys in dot notation.
264
elseif (str_contains($key, '.')) {
265
if (in_array($key, $this->getDates()) && $value) {
266
$value = $this->fromDateTime($value);
0 commit comments