Open Legion112 opened 2 years ago
I don't understand the request for this enhancement. Should this lead to a change in the library code, or is this something that needs to be added to the examples in the README?
I think it was clear that with PHP 7.4 classes have a typed property and you don't need to define type imperativly as it might be extracted from the type.
This have to be supported in this library.
What change are you requesting for ramsey/uuid-doctrine?
@Legion112 string id column need not be UUID.
Mapping configuration via typed property
Remove @ORM\Columm(type="uuid") to minimize effort on configuration.
Background/problem
Redundant info of typed property and annotation.
Proposal/solution
Doctrine support getting type from typed property like so:
Alternatives
Additional context
This is an optional way to configure the mapping