setType('array'); $schema->getItems()->setRef( $this->modelRegistry->register(new Model($model->getType()->getCollectionValueType(), $model->getGroups())) ); } public function supports(Model $model): bool { return $model->getType()->isCollection() && null !== $model->getType()->getCollectionValueType(); } }