Skip to content

Commit

Permalink
add setter for record modification state
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jun 8, 2021
1 parent 41417ca commit ee1e6b4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Illuminate/Database/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -891,6 +891,19 @@ public function recordsHaveBeenModified($value = true)
}
}

/**
* Set the record modification state.
*
* @param bool $value
* @return $this
*/
public function setRecordModificationState(bool $value)
{
$this->recordsModified = $value;

return $this;
}

/**
* Reset the record modification state.
*
Expand Down

0 comments on commit ee1e6b4

Please sign in to comment.