We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
$builder ->add('date', DateTimeType::class, [ 'widget' => 'single_text', ]) ;
result => Could not find a transformer for any of these types (datetime, form)
Actualy a bypass by using a simple text input and appy a transformer on it :
->addModelTransformer(new CallbackTransformer( function ($datetimeObj) { if ($datetimeObj === null) { return ''; } return $datetimeObj->format('Y-m-d H:i:s'); }, function ($datetimeString) { return \DateTimeImmutable::createFromFormat('Y-m-d H:i:s', $datetimeString, new \DateTimeZone('UTC')); } ))
The text was updated successfully, but these errors were encountered:
Fix transformer that breaks compound dates and datetimes Fix #16
8c54258
No branches or pull requests
result => Could not find a transformer for any of these types (datetime, form)
Actualy a bypass by using a simple text input and appy a transformer on it :
The text was updated successfully, but these errors were encountered: