Remove useless validator from OfficeForm
authorGustavo Martin Morcuende <gu.martinm@gmail.com>
Tue, 15 May 2012 14:11:41 +0000 (16:11 +0200)
committerGustavo Martin Morcuende <gu.martinm@gmail.com>
Tue, 15 May 2012 14:11:41 +0000 (16:11 +0200)
lib/form/doctrine/OfficeForm.class.php

index 2e79330..bab320c 100644 (file)
@@ -40,11 +40,6 @@ class OfficeForm extends BaseOfficeForm
                                                                      'max'      => 'Latitude "%value%" must not exceed the %max% value',
                                                                      'min'      => 'Latitude "%value%" must be equal or higher than %min%'));
 
-    $this->validatorSchema['city_id'] = new sfValidatorDoctrineChoice(array('model'    => $this->getRelatedModelName('City'),
-                                                                            'required' => false,
-                                                                            'query'    => $cityNamesQuery));
-
-
 
     $this->widgetSchema->setLabels(array('city_id'               => 'City: ',
                                          'longitude'             => 'Longitude (180 to -180): ',