Skip to content
Snippets Groups Projects
Commit 313ed2eb authored by Jared Hancock's avatar Jared Hancock
Browse files

orm: Clear InstrumentedList cache on expunge()

parent 99fda7ce
No related branches found
No related tags found
No related merge requests found
...@@ -536,7 +536,8 @@ class InstrumentedList extends ModelInstanceIterator { ...@@ -536,7 +536,8 @@ class InstrumentedList extends ModelInstanceIterator {
return $this->queryset->exists(); return $this->queryset->exists();
} }
function expunge() { function expunge() {
return $this->queryset->delete(); if ($this->queryset->delete())
$this->reset();
} }
function update(array $what) { function update(array $what) {
return $this->queryset->update($what); return $this->queryset->update($what);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment