Skip to content

Commit

Permalink
Account for eager-loaded value types
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Nov 19, 2022
1 parent eda4324 commit 39d76dc
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/fields/Assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public static function defaultSelectionLabel(): string
*/
public static function valueType(): string
{
return AssetQuery::class;
return sprintf('%s|%s[]', AssetQuery::class, Asset::class);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/fields/BaseRelationField.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public static function defaultSelectionLabel(): string
*/
public static function valueType(): string
{
return ElementQueryInterface::class;
return sprintf('%s|%s[]', ElementQueryInterface::class, ElementInterface::class);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/fields/Categories.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public static function defaultSelectionLabel(): string
*/
public static function valueType(): string
{
return CategoryQuery::class;
return sprintf('%s|%s[]', CategoryQuery::class, Category::class);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/fields/Entries.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public static function defaultSelectionLabel(): string
*/
public static function valueType(): string
{
return EntryQuery::class;
return sprintf('%s|%s[]', EntryQuery::class, Entry::class);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/fields/Matrix.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public static function supportedTranslationMethods(): array
*/
public static function valueType(): string
{
return MatrixBlockQuery::class;
return sprintf('%s|%s[]', MatrixBlockQuery::class, MatrixBlock::class);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/fields/Tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public static function defaultSelectionLabel(): string
*/
public static function valueType(): string
{
return TagQuery::class;
return sprintf('%s|%s[]', TagQuery::class, Tag::class);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/fields/Users.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public static function defaultSelectionLabel(): string
*/
public static function valueType(): string
{
return UserQuery::class;
return sprintf('%s|%s[]', UserQuery::class, User::class);
}

/**
Expand Down

0 comments on commit 39d76dc

Please sign in to comment.