![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Moderatorzy Postów: 36 559 Pomógł: 6315 Dołączył: 27.12.2004 ![]() |
Chce uzyskac zapytanie (przykład z manuala):
zastosowali: ->where("price < $minimumPrice OR price > $maximumPrice") Chcialbym jednak uzyc bindowania i zrobic tak
Oczywiscie to nie zadziala, bo where() przyjmuje tylko jedą wartosc do bindowania. W kodzie ani w dokumentacji nie znalazlem tego, a nie chce mi sie wierzyc by nie pomysleli o tym przy where()... Zapodanie tablicy wartosci tez nie dziala. |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 428 Pomógł: 128 Dołączył: 17.06.2007 Ostrzeżenie: (0%) ![]() ![]() |
Cytat If you need to combine terms together using OR, use the orWhere() method. This method is used in the same way as the where() method, except that the term specified is preceded by OR, instead of AND. Edit: źródło Ten post edytował ziqzaq 19.02.2009, 09:49:21 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 7.10.2025 - 05:22 |