Skip to content

Commit

Permalink
Merge pull request #172 from erikn69/patch-15
Browse files Browse the repository at this point in the history
Fix StyleCI
  • Loading branch information
topclaudy authored Feb 28, 2024
2 parents 25a4ed2 + f76b031 commit fc381a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"email": "cdaniel@awobaz.com"
}
],
"require": {
"require": {
"illuminate/database": ">=5.6 <12.0"
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion src/Database/Eloquent/Relations/BelongsTo.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function associate($model)
$relationName = property_exists($this, 'relationName') ? $this->relationName : $this->relation;
if ($model instanceof Model) {
$this->child->setRelation($relationName, $model);
// proper unset // https://github.com/illuminate/database/commit/44411c7288fc7b7d4e5680cfcdaa46d348b5c981
// proper unset // https://github.com/illuminate/database/commit/44411c7288fc7b7d4e5680cfcdaa46d348b5c981
} elseif ($this->child->isDirty($this->foreignKey)) {
$this->child->unsetRelation($relationName);
}
Expand Down

0 comments on commit fc381a3

Please sign in to comment.