Remove obsolete constraints
This commit is contained in:
@@ -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')
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user