문제

I need to find a records where the values of some field are different, it looks like IN, better to say FIND ALL WHERE field=1 OR field=2... OR field=9 And these OR can be a lot. Is it possible to make somethig with this in ORM on Kohana?

도움이 되었습니까?

해결책

ORM::factory('Model')->where('field1', '=', 'value')->or_where('field2', '=', 'value')...
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top