maker-bundle icon indicating copy to clipboard operation
maker-bundle copied to clipboard

`make:entitiy`: Suggestion: Add `enumType`

Open ThomasLandauer opened this issue 2 years ago • 1 comments

I'm suggesting to add this possible outcome to the wizard:

#[ORM\Column(nullable:true, enumType: Suit::class)]
private ?Suit $suit = null;

Maybe via a dedicated enum entry in the types list, then by inferring the actual type (i.e. string or int) from the enum itself.

ThomasLandauer avatar Nov 11 '22 17:11 ThomasLandauer

There was a feature to convert enum strings to value introduced in v1.43.0 but disappeared in v1.44.0, I dunno why ...

https://github.com/symfony/maker-bundle/commit/e09a55be6331346fa46c0e3aabced6ee8c434332

crassaert avatar Mar 14 '23 20:03 crassaert