annotated
annotated copied to clipboard
Virtual generated columnš”
I have an idea!
Hi,
I would like to extend the functionality to support virtual generated columns.
In Doctrine it is possible using this explicit annotation:
#[ORM\Column(type: 'int', columnDefinition: 'INT GENERATED ALWAYS AS (IF(xyz IS TRUE, 100, 200)) VIRTUAL', generated: 'ALWAYS')]
private int $someNumber;
Possibly the freshly added GeneratedColumn
attribute might be used to support the functionality?
I am open to bounty this feature.