Skip to content

Commit 324d4f9

Browse files
pi0Pooya Parsa
authored and
Pooya Parsa
committed
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 296fac2 commit 324d4f9

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
@@ -535,6 +535,17 @@ protected function newBaseQueryBuilder()
535535

536536
return new QueryBuilder($connection, $connection->getPostProcessor());
537537
}
538+
539+
/**
540+
* We just return original key here in order to support keys in dot-notation
541+
*
542+
* @param string $key
543+
* @return string
544+
*/
545+
protected function removeTableFromKey($key)
546+
{
547+
return $key;
548+
}
538549

539550
/**
540551
* Handle dynamic method calls into the method.

0 commit comments

Comments
 (0)