You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created an entity with a decimal field and a precision with 2.
This is what the bundle generated: /** * @ORM\Column(type="decimal", precision="2") */ private $cost;
While trying to update the schema i got that error:
[Type Error] Attribute "precision" of @Orm\Column declared on property App\Entity\Cost::$cost expects a(n) integer, but got string.
I change the string property to an integer and it worked. /** * @ORM\Column(type="decimal", precision=2) */ private $cost;
The text was updated successfully, but these errors were encountered:
I'm having the same issue with the length attribute for string types. It generates * @ORM\Column(type="string", length="50")
Looks like maybe part of the same issue?
I created an entity with a decimal field and a precision with 2.
This is what the bundle generated:
/** * @ORM\Column(type="decimal", precision="2") */ private $cost;
While trying to update the schema i got that error:
I change the string property to an integer and it worked.
/** * @ORM\Column(type="decimal", precision=2) */ private $cost;
The text was updated successfully, but these errors were encountered: