Skip to content

Updated type guessers to use FQCNs for guessed types #16334

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed

Updated type guessers to use FQCNs for guessed types #16334

wants to merge 2 commits into from

Conversation

hiddewie
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #16332
License MIT
Doc PR symfony/symfony-docs#5834 (if applicable)

@hiddewie
Copy link
Contributor Author

Excuse me, I had overlooked those lines.


case 'Symfony\Component\Validator\Constraints\Language':
return new TypeGuess('language', array(), Guess::HIGH_CONFIDENCE);
return new TypeGuess('Symfony\Component\Form\Extension\Core\Type\LamguageType', array(), Guess::HIGH_CONFIDENCE);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo

Fixed forgotten lines of replacing form types with FQCNs

Fix typos in class names
@@ -48,35 +48,35 @@ public function guessType($class, $property)
$multiple = $metadata->isCollectionValuedAssociation($property);
$mapping = $metadata->getAssociationMapping($property);

return new TypeGuess('entity', array('em' => $name, 'class' => $mapping['targetEntity'], 'multiple' => $multiple), Guess::HIGH_CONFIDENCE);
return new TypeGuess('Symfony\Component\Form\Extension\Core\Type\EntityType', array('em' => $name, 'class' => $mapping['targetEntity'], 'multiple' => $multiple), Guess::HIGH_CONFIDENCE);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Symfony\Bridge\Doctrine\Form\Type\EntityType

@Tobion
Copy link
Contributor

Tobion commented Oct 26, 2015

👍

Status: Reviewed

@jakzal
Copy link
Contributor

jakzal commented Oct 26, 2015

👍

@Tobion
Copy link
Contributor

Tobion commented Oct 26, 2015

Thank you @hiddewie.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants