Skip to content

Commit acdb7cc

Browse files
committed
performUpdate should return false if no update is performed
1 parent 2b19faf commit acdb7cc

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Illuminate/Database/Eloquent/Model.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1449,9 +1449,11 @@ protected function performUpdate(Builder $query)
14491449

14501450
$this->fireModelEvent('updated', false);
14511451
}
1452+
1453+
return true;
14521454
}
14531455

1454-
return true;
1456+
return false;
14551457
}
14561458

14571459
/**

0 commit comments

Comments
 (0)