8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
In Symfony 2.7 only, works fine in 2.6.*
$builder->add('typeVoie', 'entity', array( 'class' => 'MyBundle:TypeVoie', 'query_builder' => function(EntityRepository $er) { return $er->createQueryBuilder('u') ->orderBy('u.weight', 'DESC'); }, 'property' => 'typeVoieLower', 'label' => 'Type de voie', 'label_attr' => array('id' => 'label_typevoie'), 'required' => false )
Despite the option required => false the form does not accept null values and returns
required => false
SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for integer: ""
The entity definition has the option nullable=true set on this field.
nullable=true
Thanks
The text was updated successfully, but these errors were encountered:
I think it's a duplicated of #14583.
Sorry, something went wrong.
closing as a duplicate of #14583
No branches or pull requests
In Symfony 2.7 only, works fine in 2.6.*
Despite the option
required => false
the form does not accept null values and returnsSQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for integer: ""
The entity definition has the option
nullable=true
set on this field.Thanks
The text was updated successfully, but these errors were encountered: