The doctrine documentation for @ORM\Column says that the type-attribute is required. Does that still hold with PHP 7.4? With type hints directly in PHP I feel that the type-attribute in the annotation is redundant. Is there a way to not provide the type-attribute and make doctrine infer it from the PHP type hints?
Example:
Instead of using this code
class Client
{
/** @ORM\Column(name="code" , type="string" , length=20 , unique=true) */ private string $code;
/** @ORM\Column(name="moduleX", type="boolean", nullable=true ) */ private ?bool $moduleX;
// [...]
I'd like to write the following:
class Client
{
/** @ORM\Column(name="code" , length=20, unique=true) */ private string $code;
/** @ORM\Column(name="moduleX", ) */ private ?bool $moduleX;
// [...]
If not, is that feature in discussion - or is there a way to suggest it?