Remove obsolete constraints

This commit is contained in:
Björn Fromme
2018-09-29 15:13:16 +02:00
parent 0f789b7048
commit 2f93aa5d86
@@ -72,9 +72,7 @@ class HotelRepository extends AbstractRepository
->leftJoin('hotel', 'tx_epproducts_domain_model_country', 'country', 'hotel.country = country.uid')
->leftJoin('hotel', 'tx_epproducts_domain_model_region', 'region', 'hotel.region = region.uid')
->where('hotel.uid = :hotelUid')
->andWhere('hotel.hidden = 0')
->andWhere('hotel.show_as_teaser = 1')
->andWhere('hotel.deleted = 0')
->setParameter('hotelUid', $hotelUid)
;
@@ -173,9 +171,7 @@ class HotelRepository extends AbstractRepository
->from('tx_epproducts_domain_model_hotel', 'hotel')
->leftJoin('hotel', 'tx_epproducts_domain_model_country', 'country', 'hotel.country = country.uid')
->leftJoin('hotel', 'tx_epproducts_domain_model_region', 'region', 'hotel.region = region.uid')
->where('hotel.hidden = 0')
->andWhere('hotel.show_as_teaser = 1')
->andWhere('hotel.deleted = 0')
->where('hotel.show_as_teaser = 1')
->add('orderBy', 'FIELD(hotel.type, ' . Hotel::TYPE_SPORTS_CLUB . ') DESC')
->addOrderBy('hotel.name', 'ASC')
;