Skip to content

make:entity. Attribute "scale" on property expects a(n) integer, but got string. #366

@maximmandrik

Description

@maximmandrik

Automatically generates this code:

/**
 * @ORM\Column(type="decimal", precision=6, scale="0")
 */
private $delivery_price;

And there should be such code:

/**
 * @ORM\Column(type="decimal", precision=6, scale=0)
 */
private $delivery_price;

Doctrine throws an error:
In AnnotationException.php line x:
[Type Error] Attribute "scale" of @ORM\Column declared on property App\Entity\Order::$delivery_price expects a(n) integer, but got string.

P.S. on v1.11.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions