sonata-project/ecommerce — pull request #214 by zapoyok (2014-04-01 08:19:58+00:00)
Title: Cast always quantity to integer in calculatePrice

When we hide the quantity input in method BaseProductProvider::defineAddBasketForm($product, $formBuilder, true, $option), the quantity is send to string format (="1") and not as an integer (=1).

In this case an exception is thrown systematically.