Skip to content

Commit

Permalink
Merge pull request #10942 from tjbwsk/4.13
Browse files Browse the repository at this point in the history
added missing returns (fluent setter)
  • Loading branch information
GuySartorelli authored Sep 12, 2023
2 parents 7ea25bf + 17733aa commit 9594444
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ORM/FieldType/DBClassName.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ public function setValue($value, $record = null, $markChanged = true)
if ($record instanceof DataObject) {
$this->record = $record;
}

return $this;
}

public function getDefault()
Expand Down
2 changes: 2 additions & 0 deletions src/ORM/FieldType/DBPrimaryKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,7 @@ public function setValue($value, $record = null, $markChanged = true)
if ($record instanceof DataObject) {
$this->object = $record;
}

return $this;
}
}

0 comments on commit 9594444

Please sign in to comment.