Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
Fix EntityType->empty_data=null#19732
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Symfony 3.1, Doctine 2.5, PHP 7, SQL ServerWith :```$builder ->add('users', EntityType::class, array( 'label' => 'Users', 'class' => 'AppBundle\Entity\Users', 'choice_label' => 'name', 'query_builder' => function (EntityRepository $er) { return $er->createQueryBuilder('u') ->orderBy('u.name', 'ASC'); }, 'empty_data' => null, 'required' => false ))```I got an error : SQLSTATE [42000, 8114]: [Microsoft][ODBC Driver 13 for SQL Server][SQL Server]Eror converting nvarchar datatype to numeric.
lemoinem left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Status: Reviewed
lemoinem left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Hi, Sorry, I've been too fast the first time.
Thank you for the contribution.
Could you add a test to make sure the bug doesn't reappears?
Plus, if you could include the whole PR template please, each part is important. If you think one is not relevant for your PR, please leave it empty or fill it with N/A instead of removing the line entirely.
Thank you!
HeahDude commentedSep 28, 2016
This fix is wrong. If |
Symfony 3.1, Doctine 2.5, PHP 7, SQL Server
With :
I got an error :
SQLSTATE [42000, 8114]: [Microsoft][ODBC Driver 13 for SQL Server][SQL Server]Eror converting nvarchar datatype to numeric.