Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- public function filterByPhone($value)
- {
- return $this->usePlacePhoneQuery()
- ->filterByPhone($value)
- ->endUse();
- }
- public function filterByEmail($value)
- {
- return $this->usePlaceEmailQuery()
- ->filterByEmail($value)
- ->endUse();
- }
- public function filterByTitle($value)
- {
- return $this->usePlaceI18nQuery()
- ->filterByTitle($value)
- ->groupBy("Id")
- ->endUse();
- }
- public function filterByCountry($value)
- {
- return $this->useCityQuery()
- ->filterByCountryId($value)
- ->endUse();
- }
- public function filterByIsPaid($value)
- {
- if (1 == $value)
- {
- return $this
- ->usePlacePaymentQuery()
- ->groupBy('PlacePayment.PlaceId')
- ->having("COUNT(place_payment.id) > 0")
- ->endUse();
- }
- else
- {
- return $this
- ->leftJoinPlacePayment()
- ->groupBy('Place.Id')
- ->having("COUNT(place_payment.id) = 0");
- }
- }
- ?>
Add Comment
Please, Sign In to add comment