symfony - Type hinting with doctrine: Is the type attribute still required on @ORMColumn annotation when using PHP 7.4 with type hints?

one text

Solution:

Doctrine types is conversion between PHP and SQL types. Even simple PHP types like string can be VARCHAR, DECIMAL, or CLOB in the database.

And the type hint can be an object too:

private UuidInterface $id;

How to store this in the database? String, binary, integer?

Doctrine doesn't know about your application business logic so I think reflection is not a good replacement for annotation.

Source