Skip to content

Commit

Permalink
Correctly set valueType on foreign fields
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-lenz committed Nov 18, 2020
1 parent 8d7a06e commit 0f8137f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/foreignField/ForeignField.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

0 comments on commit 0f8137f

Please sign in to comment.