Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
B has one set related
Browse files Browse the repository at this point in the history
  • Loading branch information
valentin v / vvval committed Nov 23, 2017
1 parent 090eea0 commit e6299fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/Spiral/ORM/Entities/Relations/HasOneRelation.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function setRelated($value)

if (empty($this->previous)) {
//We are only keeping reference to the oldest (ie loaded) instance
$this->previous = $this->instance;
$this->previous = $this->getRelated();
}

$this->instance = $value;
Expand Down

0 comments on commit e6299fe

Please sign in to comment.