annotated icon indicating copy to clipboard operation
annotated copied to clipboard

Virtual generated columnšŸ’”

Open peldax opened this issue 8 months ago ā€¢ 1 comments

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.

peldax avatar Jun 20 '24 20:06 peldax