diff --git a/docs/en/04_Changelogs/4.0.0.md b/docs/en/04_Changelogs/4.0.0.md index 58770dcb6..33e4373af 100644 --- a/docs/en/04_Changelogs/4.0.0.md +++ b/docs/en/04_Changelogs/4.0.0.md @@ -1380,6 +1380,7 @@ A very small number of methods were chosen for deprecation, and will be removed * `DataObjectSchema` class added to assist with mapping between classes and tables. * `DBMoney` values are now treated as empty only if `Amount` field is null. If an `Amount` value is provided without a `Currency` specified, it will be formatted as per the current locale. +* Removed `DatabaseAdmin#clearAllData()`. Use `DB::get_conn()->clearAllData()` instead The below methods have been added or had their functionality updated to `DBDate`, `DBTime` and `DBDatetime` * `getTimestamp()` added to get the respective date / time as unix timestamp (seconds since 1970-01-01) diff --git a/src/ORM/DatabaseAdmin.php b/src/ORM/DatabaseAdmin.php index e81ef6250..5f63b1fef 100644 --- a/src/ORM/DatabaseAdmin.php +++ b/src/ORM/DatabaseAdmin.php @@ -361,17 +361,6 @@ class DatabaseAdmin extends Controller ClassInfo::reset_db_cache(); } - /** - * Clear all data out of the database - * - * @deprecated since version 4.0 - */ - public function clearAllData() - { - Deprecation::notice('4.0', 'Use DB::get_conn()->clearAllData() instead'); - DB::get_conn()->clearAllData(); - } - /** * Remove invalid records from tables - that is, records that don't have * corresponding records in their parent class tables.