diff --git a/src/GraphQL/Resolvers/Resolver.php b/src/GraphQL/Resolvers/Resolver.php index bcc23190..91ecd150 100644 --- a/src/GraphQL/Resolvers/Resolver.php +++ b/src/GraphQL/Resolvers/Resolver.php @@ -12,9 +12,21 @@ use SilverStripe\ORM\ValidationException; use InvalidArgumentException; use Exception; +use SilverStripe\Dev\Deprecation; +/** + * @deprecated 5.3.0 Will be removed without equivalent functionality to replace it + */ class Resolver { + public function __construct() + { + Deprecation::withNoReplacement(function () { + $message = 'Will be removed without equivalent functionality to replace it'; + Deprecation::notice('5.3.0', $message, Deprecation::SCOPE_CLASS); + }); + } + /** * @param $value * @return object diff --git a/src/Models/BaseElement.php b/src/Models/BaseElement.php index 6470eda0..37e2ebbd 100644 --- a/src/Models/BaseElement.php +++ b/src/Models/BaseElement.php @@ -1280,9 +1280,13 @@ public function EvenOdd() /** * @return string + * @deprecated 5.3.0 Will be removed without equivalent functionality to replace it */ public static function getGraphQLTypeName(): string { + Deprecation::withNoReplacement(function () { + Deprecation::notice('5.3.0', 'Will be removed without equivalent functionality to replace it'); + }); // For GraphQL 3, use the static schema type name - except for BaseElement for which this is inconsistent. if (class_exists(StaticSchema::class) && static::class !== BaseElement::class) { return StaticSchema::inst()->typeNameForDataObject(static::class); diff --git a/src/ORM/FieldType/DBObjectType.php b/src/ORM/FieldType/DBObjectType.php index f91710ed..f4ade846 100644 --- a/src/ORM/FieldType/DBObjectType.php +++ b/src/ORM/FieldType/DBObjectType.php @@ -3,9 +3,21 @@ use SilverStripe\GraphQL\Manager; use SilverStripe\ORM\FieldType\DBField; +use SilverStripe\Dev\Deprecation; +/** + * @deprecated 5.3.0 Will be removed without equivalent functionality to replace it + */ class DBObjectType extends DBField { + public function __construct() + { + Deprecation::withNoReplacement(function () { + $message = 'Will be removed without equivalent functionality to replace it'; + Deprecation::notice('5.3.0', $message, Deprecation::SCOPE_CLASS); + }); + } + /** * Add the field to the underlying database. */