public function buildForm(FormBuilderInterface $builder, array $options)
 {
     $startYear = date("Y", strtotime("-30 year"));
     $endYear = date('Y');
     $rmcHelperObj = new RmcHelpers();
     $builder->add('ad', AdPostType::class, array('label' => ' '))->add('mileage', 'number', array('required' => false))->add('model')->add('commercialVehicleType', null, array('label' => 'Commercial Vehicle Type'))->add('mfgYear', 'choice', array('label' => 'Manufacturing Year', 'choices' => $rmcHelperObj->getYears($startYear, $endYear), 'multiple' => false, 'required' => true, 'expanded' => false))->add('owners')->add('salvage')->add('conditions')->add('color')->add('fuelType')->add('capacity')->add('commercialVehicleEquipment', null, array('label' => 'Commercial Vehicle Equipments', 'expanded' => true))->add('fuelConsumption')->add('vin', 'number', array('required' => false))->add('power');
 }
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     $startYear = date("Y", strtotime("-30 year"));
     $endYear = date('Y');
     $rmcHelperObj = new RmcHelpers();
     $builder->add('ad', AdPostType::class, array('label' => ' '))->add('mileage', 'number', array('required' => false))->add('engineSize', 'number', array('required' => false))->add('carType')->add('mfgYear', 'choice', array('label' => 'Manufacturing Year', 'choices' => $rmcHelperObj->getYears($startYear, $endYear), 'multiple' => false, 'required' => true, 'expanded' => false))->add('owners')->add('salvage')->add('doors', 'choice', array('label' => 'Doors', 'choices' => $rmcHelperObj->getDoors(), 'multiple' => false, 'required' => true, 'expanded' => false))->add('conditions')->add('seats', 'choice', array('label' => 'Doors', 'choices' => $rmcHelperObj->getSeats(), 'multiple' => false, 'required' => true, 'expanded' => false))->add('color')->add('fuelType')->add('capacity')->add('tuvValidity')->add('carEquipments', null, array('expanded' => true))->add('transmission')->add('gearType')->add('fuelConsumption')->add('displacement')->add('vin', 'number', array('required' => false))->add('power')->add('emission')->add('airConditioner');
 }