In db, the field is a decimal type and is stored as follows: 0.5
In Entity field
/** @ORM\Column(name="precio_x_ticket", type="decimal", scale=2) */
In FormType, the field is configured as follows
->add('precio_x_ticket','money', array( //'grouping' => true, 'currency' => false, 'label' => 'Precio por ticket', ))
When saving from a form, I can save numbers, as in this format 0.5 or 0.5, but after saving the number always return this format 0.5, and I would like to show it as 0.5
My locale es
Any idea how to solve this problem using only symfony2.5?
source share