Looking to Build/Redesign a Website or Blog ?

To speak to Rakshit, call +91 968 704 2303

April 30, 2010



How to use OR in find method – CakePHP

When any developer is working with any web application, he/she will constantly interact with the Select Query. As i am working with CakePHP, i also need to use Select Query often. For Select Query in CakePHP, you can use find method of Model which gives you the data as per conditions given in find method. If you write more than one conditions in conditions array passed in find method than by default it will take OR clause and make a query string with "OR".