diff --git a/src/foreignField/ForeignField.php b/src/foreignField/ForeignField.php index 29c38af..b279195 100644 --- a/src/foreignField/ForeignField.php +++ b/src/foreignField/ForeignField.php @@ -454,5 +454,11 @@ public static function supportedTranslationMethods(): array { public static function t(string $message): string { return Craft::t('site', $message); } -} + /** + * @inheritdoc + */ + public static function valueType(): string { + return static::modelClass(); + } +}