Skip to content

Commit

Permalink
[8.x] Add DB::resetRecordsModifications (#36617)
Browse files Browse the repository at this point in the history
* add DB::resetRecordsModifications

* Update Connection.php

Co-authored-by: Taylor Otwell <taylor@laravel.com>
  • Loading branch information
themsaid and taylorotwell authored Mar 16, 2021
1 parent 03efea9 commit acb1177
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Illuminate/Database/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -867,6 +867,16 @@ public function recordsHaveBeenModified($value = true)
}
}

/**
* Reset the record modification state.
*
* @return void
*/
public function forgetRecordModificationState()
{
$this->recordsModified = false;
}

/**
* Is Doctrine available?
*
Expand Down

0 comments on commit acb1177

Please sign in to comment.