diff --git a/src/Database/Eloquent/Relations/BelongsTo.php b/src/Database/Eloquent/Relations/BelongsTo.php index 17acccc..b96e59e 100755 --- a/src/Database/Eloquent/Relations/BelongsTo.php +++ b/src/Database/Eloquent/Relations/BelongsTo.php @@ -10,6 +10,7 @@ /** * @template TRelatedModel of \Illuminate\Database\Eloquent\Model * @template TChildModel of \Illuminate\Database\Eloquent\Model + * * @extends BaseBelongsTo */ class BelongsTo extends BaseBelongsTo @@ -53,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); } diff --git a/src/Database/Eloquent/Relations/HasMany.php b/src/Database/Eloquent/Relations/HasMany.php index 98df329..69f2117 100755 --- a/src/Database/Eloquent/Relations/HasMany.php +++ b/src/Database/Eloquent/Relations/HasMany.php @@ -7,6 +7,7 @@ /** * @template TRelatedModel of \Illuminate\Database\Eloquent\Model + * * @extends BaseHasMany */ class HasMany extends BaseHasMany diff --git a/src/Database/Eloquent/Relations/HasOne.php b/src/Database/Eloquent/Relations/HasOne.php index 17eb2a3..a810e60 100755 --- a/src/Database/Eloquent/Relations/HasOne.php +++ b/src/Database/Eloquent/Relations/HasOne.php @@ -8,6 +8,7 @@ /** * @template TRelatedModel of \Illuminate\Database\Eloquent\Model + * * @extends BaseHasOne */ class HasOne extends BaseHasOne