diff --git a/src/ORM/DataObject.php b/src/ORM/DataObject.php index 76172c96177..85245b155c2 100644 --- a/src/ORM/DataObject.php +++ b/src/ORM/DataObject.php @@ -2706,6 +2706,12 @@ public function getCMSCompositeValidator(): CompositeValidator // Support for the old method during the deprecation period if ($this->hasMethod('getCMSValidator')) { + Deprecation::notice( + '5.4.0', + 'The getCMSValidator() method is deprecated and won\'t be supported in a future major release.' + . ' Override getCMSCompositeValidator() instead.', + Deprecation::SCOPE_GLOBAL + ); $compositeValidator->addValidator($this->getCMSValidator()); }