Skip to content

Doctrine type "number" does not have any registered descriptor #753

@whataboutpereira

Description

@whataboutpereira

PHP 8.4 introduced BcMath\Number and Doctrine is also supporting it now.

doctrine/dbal#6686

    #[ORM\Column(type: Types::NUMBER, precision: 9, scale: 2)]
    private Number $number;

However using the number type yields:

  :18    Property App\Entity\Test::$number Doctrine type "number" does not have any registered descriptor.  
         🪪  doctrine.descriptorNotFound  

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions