@@ -12,7 +12,6 @@ |
||
| 12 | 12 | |
| 13 | 13 | use App\Entity\User; |
| 14 | 14 | use Symfony\Component\Form\AbstractType; |
| 15 | -use Symfony\Component\Form\Extension\Core\Type\ChoiceType; |
|
| 16 | 15 | use Symfony\Component\Form\Extension\Core\Type\PasswordType; |
| 17 | 16 | use Symfony\Component\Form\FormBuilderInterface; |
| 18 | 17 | use Symfony\Component\OptionsResolver\OptionsResolver; |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | { |
| 29 | 29 | return [ |
| 30 | 30 | // $districtData = [$city, $name, $slug]; |
| 31 | - [$this->getReference('Варна'), 'Община Варна', 'south-tampa'], |
|
| 31 | + [$this->getReference('Варна'), 'Община Варна', 'south-tampa'], |
|
| 32 | 32 | ]; |
| 33 | 33 | } |
| 34 | 34 | |
@@ -28,23 +28,23 @@ |
||
| 28 | 28 | { |
| 29 | 29 | return [ |
| 30 | 30 | // $neighborhoodData = [$city, $name, $slug]; |
| 31 | - [$this->getReference('Варна'), 'бул. Владислав Варненчик', 'bul-vladislav-varnenchik'], |
|
| 32 | - [$this->getReference('Варна'), 'Владиславово', 'vladislavovo'], |
|
| 33 | - [$this->getReference('Варна'), 'Възраждане 1', 'vazdrazhdane-1'], |
|
| 34 | - [$this->getReference('Варна'), 'Възраждане 2', 'vazdrazhdane-2'], |
|
| 35 | - [$this->getReference('Варна'), 'Възраждане 3', 'vazdrazhdane-3'], |
|
| 36 | - [$this->getReference('Варна'), 'Възраждане 4', 'vazdrazhdane-4'], |
|
| 37 | - [$this->getReference('Варна'), 'Зимно кино тракия', 'zimno-kino-trakiya'], |
|
| 38 | - [$this->getReference('Варна'), 'Лятно кино тракия', 'lyatno-kino-trakiya'], |
|
| 39 | - [$this->getReference('Варна'), 'Кайсиева градина', 'kaysieva-gradina'], |
|
| 40 | - [$this->getReference('Варна'), 'Младост 1', 'mladost-1'], |
|
| 41 | - [$this->getReference('Варна'), 'Младост 2', 'mladost-2'], |
|
| 42 | - [$this->getReference('Варна'), 'м-т Балъм дере', 'm-t-balam-dere'], |
|
| 43 | - [$this->getReference('Варна'), 'м-т Ментеше', 'm-t-menteshe'], |
|
| 44 | - [$this->getReference('Варна'), 'м-т Боровец - Юг', 'm-t-borovetsh-yug'], |
|
| 45 | - [$this->getReference('Варна'), 'м-т Боровец - Север', 'm-t-borovets-sever'], |
|
| 46 | - [$this->getReference('Варна'), 'Галата', 'galata'], |
|
| 47 | - [$this->getReference('Варна'), 'Трошево', 'troshevo'], |
|
| 31 | + [$this->getReference('Варна'), 'бул. Владислав Варненчик', 'bul-vladislav-varnenchik'], |
|
| 32 | + [$this->getReference('Варна'), 'Владиславово', 'vladislavovo'], |
|
| 33 | + [$this->getReference('Варна'), 'Възраждане 1', 'vazdrazhdane-1'], |
|
| 34 | + [$this->getReference('Варна'), 'Възраждане 2', 'vazdrazhdane-2'], |
|
| 35 | + [$this->getReference('Варна'), 'Възраждане 3', 'vazdrazhdane-3'], |
|
| 36 | + [$this->getReference('Варна'), 'Възраждане 4', 'vazdrazhdane-4'], |
|
| 37 | + [$this->getReference('Варна'), 'Зимно кино тракия', 'zimno-kino-trakiya'], |
|
| 38 | + [$this->getReference('Варна'), 'Лятно кино тракия', 'lyatno-kino-trakiya'], |
|
| 39 | + [$this->getReference('Варна'), 'Кайсиева градина', 'kaysieva-gradina'], |
|
| 40 | + [$this->getReference('Варна'), 'Младост 1', 'mladost-1'], |
|
| 41 | + [$this->getReference('Варна'), 'Младост 2', 'mladost-2'], |
|
| 42 | + [$this->getReference('Варна'), 'м-т Балъм дере', 'm-t-balam-dere'], |
|
| 43 | + [$this->getReference('Варна'), 'м-т Ментеше', 'm-t-menteshe'], |
|
| 44 | + [$this->getReference('Варна'), 'м-т Боровец - Юг', 'm-t-borovetsh-yug'], |
|
| 45 | + [$this->getReference('Варна'), 'м-т Боровец - Север', 'm-t-borovets-sever'], |
|
| 46 | + [$this->getReference('Варна'), 'Галата', 'galata'], |
|
| 47 | + [$this->getReference('Варна'), 'Трошево', 'troshevo'], |
|
| 48 | 48 | ]; |
| 49 | 49 | } |
| 50 | 50 | |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | public function load(ObjectManager $manager): void |
| 16 | 16 | { |
| 17 | 17 | foreach ($this->getPropertyData() as [$author, $dealType, $category, $bedrooms, $guests, $city, $district, |
| 18 | - $neighborhood, $title, $address, $latitude, $longitude, $price, $priceType, ]) { |
|
| 18 | + $neighborhood, $title, $address, $latitude, $longitude, $price, $priceType, ]) { |
|
| 19 | 19 | $property = new Property(); |
| 20 | 20 | $property->setAuthor($author); |
| 21 | 21 | $property->setDealType($dealType); |