Commit 0939810
committed
bug #46676 [DoctrineBridge] Extend type guessing on enum fields (Gigino Chianese)
This PR was merged into the 4.4 branch.
Discussion
----------
[DoctrineBridge] Extend type guessing on enum fields
| Q | A
| ------------- | ---
| Branch? | 4.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | -
| License | MIT
| Doc PR | -
Doctrine supports enumType on array values, while the current implementation always assumes the value to be an enum object, if enumType is set.
If $typeOfField is `json_array` the collectionKeyType will still be null, while collectionValueType will be filled. That's because we have no way to determine from doctrine metadata, if the key is string or int. Yet I don't know if that's a valid thing to do, otherwise we should return null in that case.
Commits
-------
79239feaab CS fix
a9b0f43366 [DoctrineBridge] Extend type guessing on enum fields1 file changed
+0
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
118 | 117 | | |
119 | | - | |
120 | 118 | | |
121 | | - | |
122 | 119 | | |
123 | 120 | | |
124 | 121 | | |
| |||
0 commit comments