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.
single_text
1 parent e44c1b2 commit b0d2d5dCopy full SHA for b0d2d5d
src/Doctrine/EntityDetails.php
@@ -61,6 +61,16 @@ public function getFormFields(): array
61
$fieldsWithTypes[$field] = null;
62
}
63
64
+ foreach ($this->metadata->fieldMappings as $fieldName => $fieldMapping) {
65
+ $propType = DoctrineHelper::getPropertyTypeForColumn($fieldMapping['type']);
66
+ if (($propType === '\\'.\DateTimeImmutable::class)
67
+ || ($propType === '\\'.\DateTimeInterface::class)) {
68
+ $fieldsWithTypes[$fieldName] = [
69
+ 'type' => null,
70
+ 'options_code' => "'widget' => 'single_text'",
71
+ ];
72
+ }
73
74
foreach ($this->metadata->associationMappings as $fieldName => $relation) {
75
if (\Doctrine\ORM\Mapping\ClassMetadata::ONE_TO_MANY === $relation['type']) {
76
continue;
0 commit comments