ObjectSuggestion: Fix incorrect variable type hint

This commit is contained in:
Sukhwinder Dhillon 2023-08-17 12:22:35 +02:00
parent 8bcdb9ae3e
commit 7af6bb7e2c

View file

@ -321,8 +321,8 @@ class ObjectSuggestions extends Suggestions
self::collectRelations($resolver, $model, $models, []);
}
/** @var Model $targetModel */
foreach ($models as $path => $targetModel) {
/** @var Model $targetModel */
foreach ($resolver->getColumnDefinitions($targetModel) as $columnName => $definition) {
yield $path . '.' . $columnName => $definition->getLabel();
}