Skip to content

Commit c115516

Browse files
committed
use static call for static method
1 parent 7b013e6 commit c115516

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Relations/EmbedsMany.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function performUpdate(Model $model)
8686
// Get the correct foreign key value.
8787
$foreignKey = $this->getForeignKeyValue($model);
8888

89-
$values = $this->getUpdateValues($model->getDirty(), $this->localKey . '.$.');
89+
$values = self::getUpdateValues($model->getDirty(), $this->localKey . '.$.');
9090

9191
// Update document in database.
9292
$result = $this->toBase()->where($this->localKey . '.' . $model->getKeyName(), $foreignKey)

src/Relations/EmbedsOne.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function performUpdate(Model $model)
7777
return $this->parent->save();
7878
}
7979

80-
$values = $this->getUpdateValues($model->getDirty(), $this->localKey . '.');
80+
$values = self::getUpdateValues($model->getDirty(), $this->localKey . '.');
8181

8282
$result = $this->toBase()->update($values);
8383

0 commit comments

Comments
 (0)