Closed Pasuvan closed 3 years ago
Please fill out the whole issue template and use a better issue title. This will helper others with the same problem
I have some clue for symfony form anyone know that reason please share me faster https://github.com/symfony/symfony/blob/3.2/src/Symfony/Component/Form/Form.php Line ni 537 https://github.com/symfony/symfony/blob/3.4/src/Symfony/Component/Form/Form.php Line no 534 I check that different for the above two files only one changes in 3.4 .It is added below anyone know that reason please share me faster
if (\is_array($submittedData) && !$this->config->getCompound() && !$this->config->hasOption('multiple')) {
$submittedData = null;
$this->transformationFailure = new TransformationFailedException('Submitted data was expected to be text or number, array given.');
}
I have some clue for symfony form anyone know that reason please share me faster https://github.com/symfony/symfony/blob/3.2/src/Symfony/Component/Form/Form.php Line ni 537 https://github.com/symfony/symfony/blob/3.4/src/Symfony/Component/Form/Form.php Line no 534 I check that different for the above two files only one changes in 3.4 .It is added below anyone know that reason please share me faster
if (\is_array($submittedData) && !$this->config->getCompound() && !$this->config->hasOption('multiple')) { $submittedData = null; $this->transformationFailure = new TransformationFailedException('Submitted data was expected to be text or number, array given.'); }
When I updated Custom 'Collection type with transform form' I got an error in "Submitted data was expected to be text or number, array given" please give a solution
Please fill out the whole issue template and use a better issue title. This will helper others with the same problem
:top:
We can't help without any useful information. This issue is to unspecific.
I faced same issue. Also Please explain the usage of checking the following condition $this->config->getCompound() $this->config->hasOption('multiple')
The above issue is occured when I use custom collection type field.
Please fill out the whole issue template and use a better issue title. This will helper others with the same problem
We can't help without any useful information. This issue is to unspecific. I give the all details, What details you want?
Hi @all, Please, anyone, give the details, why this condition is used thats details enough for me. if (\is_array($submittedData) && !$this->config->getCompound() && !$this->config->hasOption('multiple')) { $submittedData = null; $this->transformationFailure = new TransformationFailedException('Submitted data was expected to be text or number, array given.'); }
is there a solution
This bundle is deprecated.
Environment
Local
Sonata packages
Symfony packages
PHP version
Subject
I upgrade symfony 3.2 to 3.4, So i have upgrade symfony and sonata bundles. Here using custom form Transformer collectionType(Array collection). Before using symfony 3.2 it was working but once upgrade showing an error.
Steps to reproduce
Expected results
Actual results