Skip to content

Commit b81655f

Browse files
authored
Filling with Dot-Notation Keys
Simply override `removeTableFromKey($key)` method and just return original keys in order to support dot-notation when calling `fill` on model.
1 parent 78a5a05 commit b81655f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/Jenssegers/Mongodb/Eloquent/Model.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,17 @@ protected function newBaseQueryBuilder()
523523

524524
return new QueryBuilder($connection, $connection->getPostProcessor());
525525
}
526+
527+
/**
528+
* We just return original key here in order to support keys in dot-notation
529+
*
530+
* @param string $key
531+
* @return string
532+
*/
533+
protected function removeTableFromKey($key)
534+
{
535+
return $key;
536+
}
526537

527538
/**
528539
* Handle dynamic method calls into the method.

0 commit comments

Comments
 (0)