@@ -90,7 +90,7 @@ public function getEnergyConsumingByHost(
9090 SELECT b.id FROM %s b WHERE b.eps_proc < 0
9191 ) ' ,
9292 PlanetField::class,
93- $ host ->getPlanetFieldHostColumnIdentifier (),
93+ $ host ->getHostType ()-> getPlanetFieldHostColumnIdentifier (),
9494 Building::class
9595 )
9696 )->setParameters ([
@@ -112,7 +112,7 @@ public function getEnergyProducingByHost(PlanetFieldHostInterface $host): array
112112 SELECT b.id FROM %s b WHERE b.eps_proc > 0
113113 ) ' ,
114114 PlanetField::class,
115- $ host ->getPlanetFieldHostColumnIdentifier (),
115+ $ host ->getHostType ()-> getPlanetFieldHostColumnIdentifier (),
116116 Building::class
117117 )
118118 )->setParameters ([
@@ -130,7 +130,7 @@ public function getHousingProvidingByHost(PlanetFieldHostInterface $host): array
130130 SELECT b.id FROM %s b WHERE b.bev_pro > 0
131131 ) ' ,
132132 PlanetField::class,
133- $ host ->getPlanetFieldHostColumnIdentifier (),
133+ $ host ->getHostType ()-> getPlanetFieldHostColumnIdentifier (),
134134 Building::class
135135 )
136136 )->setParameters ([
@@ -148,7 +148,7 @@ public function getWorkerConsumingByHost(PlanetFieldHostInterface $host): array
148148 SELECT b.id FROM %s b WHERE b.bev_use > 0
149149 ) ' ,
150150 PlanetField::class,
151- $ host ->getPlanetFieldHostColumnIdentifier (),
151+ $ host ->getHostType ()-> getPlanetFieldHostColumnIdentifier (),
152152 Building::class
153153 )
154154 )->setParameters ([
@@ -201,7 +201,7 @@ public function getCommodityConsumingByHostAndCommodity(
201201 SELECT bg.buildings_id FROM %s bg WHERE bg.commodity_id = :commodityId AND bg.count < 0
202202 ) AND f.aktiv IN (:state) ' ,
203203 PlanetField::class,
204- $ host ->getPlanetFieldHostColumnIdentifier (),
204+ $ host ->getHostType ()-> getPlanetFieldHostColumnIdentifier (),
205205 BuildingCommodity::class
206206 )
207207 )->setParameters ([
@@ -224,7 +224,7 @@ public function getCommodityProducingByHostAndCommodity(PlanetFieldHostInterface
224224 SELECT bg.buildings_id FROM %s bg WHERE bg.commodity_id = :commodityId AND bg.count > 0
225225 ) ' ,
226226 PlanetField::class,
227- $ host ->getPlanetFieldHostColumnIdentifier (),
227+ $ host ->getHostType ()-> getPlanetFieldHostColumnIdentifier (),
228228 BuildingCommodity::class
229229 )
230230 )->setParameters ([
@@ -237,7 +237,7 @@ public function getCommodityProducingByHostAndCommodity(PlanetFieldHostInterface
237237 public function getCountByHostAndBuilding (PlanetFieldHostInterface $ host , int $ buildingId ): int
238238 {
239239 return $ this ->count ([
240- $ host ->getPlanetFieldHostColumnIdentifier () => $ host ->getId (),
240+ $ host ->getHostType ()-> getPlanetFieldHostColumnIdentifier () => $ host ->getId (),
241241 'buildings_id ' => $ buildingId ,
242242 ]);
243243 }
@@ -275,7 +275,7 @@ public function getCountByColonyAndBuildingFunctionAndState(
275275 SELECT bf.buildings_id FROM %s bf WHERE bf.function IN (:buildingFunctionIds)
276276 ) ' ,
277277 PlanetField::class,
278- $ host ->getPlanetFieldHostIdentifier (),
278+ $ host ->getHostType ()-> getPlanetFieldHostIdentifier (),
279279 BuildingFunction::class
280280 )
281281 )->setParameters ([
@@ -326,7 +326,7 @@ public function getMaxShieldsOfHost(PlanetFieldHostInterface $host): int
326326 WHERE f1.%s = :hostId AND f1.aktiv = 1 AND f1.buildings_id IN (
327327 SELECT bf1.buildings_id FROM stu_buildings_functions bf1 WHERE bf1.function = :shieldGenerator
328328 ) ' ,
329- $ host ->getPlanetFieldHostColumnIdentifier ()
329+ $ host ->getHostType ()-> getPlanetFieldHostColumnIdentifier ()
330330 ),
331331 $ rsm
332332 )->setParameters ([
@@ -380,7 +380,7 @@ public function getByColonyWithBuilding(PlanetFieldHostInterface $host): array
380380 ORDER BY b.name ASC ' ,
381381 PlanetField::class,
382382 Building::class,
383- $ host ->getPlanetFieldHostColumnIdentifier (),
383+ $ host ->getHostType ()-> getPlanetFieldHostColumnIdentifier (),
384384 )
385385 )->setParameters ([
386386 'hostId ' => $ host ->getId (),
@@ -402,7 +402,7 @@ public function getEnergyProductionByHost(
402402 AND cfd.%s = :host ' ,
403403 PlanetField::class,
404404 Building::class,
405- $ host ->getPlanetFieldHostIdentifier ()
405+ $ host ->getHostType ()-> getPlanetFieldHostIdentifier ()
406406 )
407407 )->setParameters ([
408408 'state ' => 1 ,
0 commit comments