Change format of vehicles list on vehicle manufacturer entity
This commit is contained in:
parent
8c2f168ef2
commit
cf1b48a0df
1 changed files with 1 additions and 1 deletions
|
|
@ -71,7 +71,7 @@ class VehicleManufacturer
|
||||||
// has to return set of strings because symfony is trying to move away from role objects
|
// has to return set of strings because symfony is trying to move away from role objects
|
||||||
$str_vehicles = [];
|
$str_vehicles = [];
|
||||||
foreach ($this->vehicles as $vehicle)
|
foreach ($this->vehicles as $vehicle)
|
||||||
$str_vehicles[] = $this->getName() . " " . $vehicle->getMake() . " " . $vehicle->getYearFrom() . "-" . $vehicle->getYearTo();
|
$str_vehicles[$vehicle->getID()] = $vehicle->getMake() . " " . $vehicle->getYearFrom() . "-" . $vehicle->getYearTo();
|
||||||
|
|
||||||
return $str_vehicles;
|
return $str_vehicles;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue