Guys, I think I'm missing something, but don't see what exactly. First query returns, as expected, occurrences in DB:
$id = $this->request->getQuery("id", "string"); $query = $this->request->getQuery("query", "string"); $products = Products::find(array( "conditions" => $id . " LIKE '%" . $query . "%'", "limit" => 8 ));
but the second one returns first 8 rows, instead of occurences of $value:
$value = $this->request->getQuery('value', 'string'); $cities = Cities::find(array( 'conditions' => 'name LIKE :value:', 'bind' => array('value' => '%' . $value . '%'), 'limit' => 8 ));
What I'm missing?