title: How to store decimal value via Doctrine in Symfony
body: <p>I have an entity in Symfony for an product price defined in the following way:</p>
  
  <pre><code> /**
   * @var string
   *
   * @ORM\Column(name="price", type="decimal", precision=12, scale=2, nullable=true)
   *
   */
  private $price;
  </code></pre>
  
  <p>Now I want to store the price value <strong>2.50</strong>,but it rounds up to <strong>2.00</strong>.I have tried adding it as <strong>(float) 2.50</strong> or as <strong>(string) 2.50</strong> but it always is rounded to <strong>2.00</strong>. </p>
  
  <p><em>Looks like I'm not able to store the scale value?</em></p>