Create more advanced custom form type in Symfony 2.0

http://l3l0.eu/lang/en/2012/07/custom-advanced-symfony-2-form-type/